configure Xuggler on Ubuntu 14-04 - java

I was trying to install Xuggle on Ubuntu with this tutorial
But when I used ant stage it doesn`t work. I see these commands on the terminal
> root#test1:~# ant stage Unable to locate tools.jar. Expected to find
> it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar Buildfile:
> build.xml does not exist! Build failed
Do you have any idea how I can fix it?

The tools.jar error will be because ant can't find your JDK, it appears to be looking in the open JDK location. You might need to install oracle-java7-set-default so it points your system java to the oracle java you just installed.

Related

Grails application not running after macOS upgrade

After upgrading my macOS to Big Sur, I have not been able to run my grails application. I keep getting this error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':server:compileGroovy'.
Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
I have reinstalled java, but still getting the same error.
Use this command to see java paths: /usr/libexec/java_home -V | grep jdk
Copying tools.jar in /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/lib/ to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/ solved the problem.

React Native - android wont compile after adding react-native-firebase

My react native android was compiling fine until I added react-native-firebase as per the docs (ios compiles fine).
React Native 0.63.2 and react-native-firebase 8.3.0 latest versions
and followed docs very carefully. OSX 10.15.6
Deleted/cleared/reinstalled gradle and android gradle/build dirs etc.
java JRE v8.202 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
java JRE v8.202 /Library/Java/JavaVirtualMachines
Note that JAVA_HOME path set to /Applications/AndroidStudio.app/Contents/jre/jd/Contents/Home
Error:
> Task :react-native-firebase_app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-firebase_app:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
I'm using Mac Bigsur beta 4, and I have the same problem.
I tried uninstalling java by following the steps in this link:
https://www.java.com/en/download/help/mac_uninstall_java.xml
After that I checked the java version in terminal using: java -version.
The uninstall process didn't work. However, running react-native run-android now works.
Try this. It may work for you.
Note: If you tried uninstalling java, and running react-native run-android still doesn't work, add this to bash_profile and try again: export JAVA_HOME=/Applications/AndroidStudio.app/Contents/jre/jdk/Contents/Home
Ran source ~/.bash_profile to ensure JAVA_HOME path set to /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home and it compiled, yay.

Cannot run program "cmd" java maven project in netbean 8.2 and jdk1.8.0_231

whenever i run my maven project it gives this error
Cannot run program "cmd" (in directory "C:\Users\Ertugrul\Documents\NetBeansProjects\imaging"): Malformed argument has embedded quote: "C:\Program Files\NetBeans 8.2\java\maven\bin\mvn.bat" -Dexec.args="-classpath %classpath com.mycompany.imaging.Main" -Dexec.executable="C:\Program Files\Java\jdk1.8.0_231\bin\java.exe" -Dmaven.ext.class.path="C:\Program Files\NetBeans 8.2\java\maven-nblib\netbeans-eventspy.jar" -Dfile.encoding=UTF-8 process-classes org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
please help me understanding this error and suggest me the possible solution for it.
Your netbeans is missing jdk or jdk is not linked with it. Make sure your jdk is installed and linked with it or Download netbeans with jdk from here.
https://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-3413139-esa.html.

There are no compatible JREs installed in the workspace. Add library > JRE system library...nothing

So I am getting this error when trying to run a project in Eclipse.
Build path specifies execution environment JavaSE-1.6. There are no
compatible JREs installed in the workspace.
Now this error is documented in quite a few places and have tried to fix it by going to project properties > Java build path > librarys tab > add library > JRE system library...and this is where I can't go any further. When I click 'next' it does absolutely nothing, doesn't change page. The first time I tried I did get an error saying 'null...something'.
Some possible useful info
I'm using an early macbook. 10.6.8
Tying javac -version into
terminal returns javac 1.6.0_65 which javac returns usr/bin/javac
Using Eclipse Juno
So I assume JRE + JDK is installed. Any help would be most appreciated! I've been trying to fix this for hours now. Thank you.
Open your command terminal and run
/usr/libexec/java_home
The output from that command is where you should set eclipse's JRE_HOME.
Example output
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home

JAVA_HOME does not point to the JDK : Unable to start google app engine

I get the following errors when i try to run a sample project in netbeans on google app server. The server doesn't start up. How can i resolve these errors if they exist ? I am using netbeans 7.1
BUILD FAILED
W:\UnderTest\NetbeansCurrent\Guestbook\nbproject\build-impl.xml:550: The following error occurred while executing this line:
W:\UnderTest\NetbeansCurrent\Guestbook\nbproject\build-impl.xml:300: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre7"
Install jdk and set JAVA_HOME in environments variables to path that you jdk was installed. Currently it points to jre.
probable solution will be hear : setting jdk path in netbeans
or , if you setting JAVA_HOME in windows env then use %JAVA_HOME%

Categories