mvn install crashes jvm - java

I am facing a strange thing while running mvn install for a project. While executing the Copying webapp resources step the JVM crashed. I get a windows pop up saying Java has stopped working. I am not getting any error message in the console so that I can get hold of the root cause. Any help is appreciated.

Try the below steps :
1. Use JDK instead of JRE in Installed JREs.
Eclipse Path (Windows--Preference--Java--Installed JREs )
2. Use this option for maven :
clean install -Djava.net.preferIPv4Stack=true
(in Run As Maven Build --- Goals)
[Try to find the JVM crash report if available in your machine]

Related

Error 'zip END header not found' in intellij maven while updating from Java 8 to OpenJdk 11.0.2

I am trying to update from java 8 to OpenJdk 11. When I do mvn install from terminal, build works fine. But fails from (mac) intelliJ mvn install
Below is the startup command
/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/myhome/Documents/WORKSPACES/something/develop "-Dmaven.home=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3" "-Dclassworlds.conf=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf" -Didea.launcher.port=53262 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMainV2 org.codehaus.classworlds.Launcher -Didea.version=2018.2.6 -s /Users/myhome/Documents/config/maven/apache-maven-3.6.0/conf/settings.xml -Dmaven.repo.local=/Users/myhome/Documents/config/maven/repo install
Below is a sample error line
[ERROR]
/Users/myhome/Documents/WORKSPACES/something/SomeClass.java:[7,33]
cannot access org.springframework.kafka.support
[ERROR] zip END header not found
Any tip to fix it ?
(Already updated SDKs in platform settings to OpenJdk11, Maven>Runner is using OpenJdk11, Java Compiler updated to 11.
]2
I meet this error when build with gradlew, after remove the cache of gradle it works.
Solution in gradle wrapper build
rm ~/.gradle/*
If you use maven, maybe remove every thing in local maven wrapper will do the same thing.
if you used intellij idea for create some code, maybe your forgot to enable gradle, when i am facing same error . i just enable gradle on my intellij idea and then my error is resolving.
you just choose preferences -> plugins -> enable gradle if there is not enable
hope this solution can help you.
Upgrading to IntelliJ Version 2018.3.4 fixed this issue.
You could also try to delete .gradle folder as suggested by #Ninja

How to run netbeans-8.2-linux.sh in ubuntu 18.04

it's been exactly three days that I'm downloading all sorts of versions of netbeans, but in the end I can not run the command ./netbeans-8.2-linux.sh which always shows me an error .
here is somehow the message that sends me the terminal when I execute this command:
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
No protocol specified
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
So I ask myself the question: how to solve this type of problem?
you're missing the JDK. most easy might be to install JDK 8u111 with NetBeans 8.2.
this would install both of them. otherwise just install the JDK - and then NetBeans.

Error : Executing command 'ant', make sure you have ant installed and added to your path

I am using Cordova for mobile application development.
I have installed Cordova using npm command and after the installation, I have created a cordova project. Whenever I try to add a platform (android) to the project it throws following error:
Error : Executing command 'ant', make sure you have ant installed and added to your path
I have already installed ant on my system and configured path to %ANT_HOME%\bin and other respective required platforms such as JAVA_HOME, ANDROID_PLATFORM_TOOLS and ANDROID_TOOLS.
Whenever I execute the ant command in cmd, no error's are thrown. For example, after the execution of ant -version command in cmd received output is:
Apache Ant(TM) version 1.9.3 compiled on December 23 2013.
I went through many of the questions at Stack Overflow and solved the issue of tools.jar not being present at JRE's Lib directory. still the platform add is not working.
Please do help me out with this. Any help will be appreciated.
I solved this same problem installing ant with a Windows installer contribution
https://code.google.com/p/winant/
At last I was able to figure out the answer of my question.
After a long day, I tried adding IOS platform for same project and I received an error code 'ENOENT' through cordova.
I did some R&D and finally found a solution at -- Phone Gap [error] cmd: Command failed with exit code ENOENT
Again thank you all for your precious time.

Hadoop Build failed (Hadoop src 2.2.0) on Windows 7, Maven 3.1.1, Jdk 1.7.0_45

Though I am running
Ms-SDK 7.1 command prompt in Admin mode, I am getting hadoop.dll access denied error causing hadoop build failure.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8
.1:jar (module-javadocs) on project hadoop-common: ArchiverException: Error whil
e creating archive: Problem creating jar: C:\hdfs\hadoop-common-project\hadoop-c
ommon\target\hadoop-common-2.2.0\bin\hadoop.dll (Access is denied)
I thought it might be problem with JDK version so I have uninstalled jdk1.7. and insatlled jdk1.6.0_45 but still I'm getting permission error.
Can I simply avoid hadoop-common module and install other?
I just received this same error.
I solved it by adding security permissions to the file and every parent folder in the path back up to the root hadoop folder.
Just right-click on the folder/file you want to give permissions to and go to Properties. Then click the Security Tab. Next elect the logged in user and check the box marked full control. click Apply.
I had the same problem building Hadoop for Windows 7, even changing the permissions as suggested previously.
However, repeating the same steps and using the same versions on Windows Server, it worked properly.
As Hadoop developers says on the Hadoop Windows building guide [1], they have used Windows Server 2008, and "it is likely to work on Windows 7", but the permissions issue still remains.
[1]: https://wiki.apache.org/hadoop/Hadoop2OnWindows#line13 Hadoop 2 on Windows
Me too received this error. Tried giving full control on the root folder but still the problem persisted.
Could fix the issue after running chmod -R 777 <hadoop-common-folder> from the Windows SDK 7.1
Hope this helps some one.

Apache ANT Version issues during Netbeans Building

I'm trying to build a java project using netbeans ide,but i keep getting
Please build using Ant 1.8.0 or higher
error,i think this is due some version difference in the netbeans IDEs,
How can i resolve this issue
In NetBeans options, you can set Ant home. Point this to the other installation.
Mine is:
/usr/local/netbeans-7.2.1/java/ant
the default installed with netbeans.
It doesn't work for me...
I got ant version 1.9.10 and java openjdk 11.0.6 (on linux LEAP 15.1)
I want to build without launching Netbeans 10 in order to automate the copy/build process of my application stored on a distant server (lock down style ^^).
each time I use the command ant -buildfile build.xml I got this error message :{
After seeking and observing, I find out that netbeans uses its "own" ant version but either the command, outputed to Outout tab,
ant -f /netbeans/java/MagicArena -Dnb.internal.action.name=rebuild clean jar
nore
/usr/local/netbeans/extide/ant/bin/ant -f /netbeans/java/MagicArena -Dnb.internal.action.name=rebuild clean
...are giving (BIG) satisfaction :{
I got the same message at command line:
/netbeans/java/MagicArena/nbproject/build-impl.xml:111: Java 9 support requires Ant 1.10.0 or higher
:{

Categories

Resources