I would like to check out Dart. Got the windows 7 & 8 zip. Unziped it and fired up the editor.
complained that it needed a java vm. Downladed and installed it and set the reference in the ini.file to the Javaw.exe as instructed here:
-data
#user.home\DartEditor
-vm
D:\\Program Files (x86)\\Java\\jre7\\bin\\javaw.exe
-vmargs
-d64
-Dosgi.requiredJavaVersion=1.6
-Dfile.encoding=UTF-8
-XX:MaxPermSize=128m
-Xms256m
-Xmx2000m
still no joy:
UPDATE
went to 64 Bit java version:
I completely removed all java versions and obtained the latest version for windows 8.1,
added the file location to path and voila.
If you have downloaded the 64bit DartEditor you need a 64bit JRE/JDK.
https://www.dartlang.org/tools/editor/troubleshoot.html
Related
I tried to use cmd prompt to execute my java file but I got this error that says
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: MovingObject has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
but when I tried executing my java file on eclipse it works perfectly fine, its just that I want to try and run it to the command prompt to see if both ways works. Tried searching about the problem but most of the other problems is way back from long ago.
The problem was that my computer was confused as to what JRE to use. I have manually installed JDK and JRE 8 before.
So when I tried checking it through cmd.
javac -version is Java 16
while, java -version is Java 8
So, I uninstalled my Java 8 since I have installed JDK 16 and JRE version 16 on my eclipse which confuses my computer as to what version to use. That's pretty much it.
I am trying to upgrade Blackboard learn 9.1 to the latest service pack. I have successfully instaslled SP9 and am now trying to install 10, but to do that I've had to install a newer version of JDK. When I changed the JAVA_HOME to reflect this change the installer was reporting that it was still set to the previous version. I restarted the server and now that error has gone, but instead I am getting:
Java SDK location not found at C:/Java/jdk1.6.0_32.
Can anyone tell me why it is still looking in the path to the old version, and what I can do to change it?
Someone from Blackboard was able to help with this in the end, and the answer is as follows:
If running on Windows, when installing the Java SE Development Kit (JDK), make sure that both the JDK and the JRE components are installed to different locations. Also, ensure that there are no spaces in the path name to either the JDK or the JRE.
Shut down Bb-Services
Install recent version of the Java SE JDK, at least version 7u7
Change the JAVA_Home environment variable
Change the config\bb-config.properteries, changing the paths for bothbbconfig.java.home and bbconfig.java.home.win. Paths need to have forward slashes not the standard Windows backslash.
I have both Java 6 and Java 7 installed in my computer running Windows XP sp3. I have entered path in the environment variables (PATH, JAVA_HOME) in My computer-> Properties. But when I give
java -version
I still get the following text
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build
1.7.0_09-b05) Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)
However, when I try
javac -version
I get
javac 1.6.0_03
How can I change the runtime from Java 7 to Java 6? When I compile my program in eclipse using ant, I get the following
Warning: java\util\List.class(java\util:List.class): major version 51
is newer than 50, the highest major version supported by this
compiler. [javac] It is recommended that the compiler be upgraded.
Path has the JRE first, thus the java -version and the JDK second, thus the javac -version. Check your PATH variable.
If you want the JDK version, put it first on the PATH.
If am not mistake java 7 windows installer of JDK or JRE will copy java.exe to some windows common path. I don't remember exactly the path but maybe C:\Windows\System32. Try this on command line to know where is the location of java.exe:
where java
Update your path precedence accordingly.
When you install Java (JRE), it copies java.exe into C:\Windows\System32, in addition to installation directory under C:\Program Files. But when you install full JDK (with compiler), it doesn't do that for javac.exe. When you have multiple versions of java, the last installed one will be called when you type java in command line.
Use full paths if you need to have multiple Java versions, you will always have problems trying to use unqualified java in command line. Alternatively, re-install JRE 7 - that will force default java to be V7.
After searching all over the web, I am not able to solve my problem of Java execution. When using command prompt to run my "first" Java program, I am faced with the errors of Unsupported class version and Main class not found. Program will exit.
I have 2 versions of Java on my PC, Java 6 and 7. I have set the path of the JDK 7 in path environment variables and classpath too. I know the problem: I have javac -version as 1.7.02 and java version as 1.6.02, but how to change it and fix the problem?
Please elaborate the problem in easy and understandable language!
You have to run your program with the same or higher version of java that yxou compiled it with.
So you can either compile your program with Java 6 on your PC or run it with java 7.
To run your program with java 7 just use the complete path to your java runtime environment. for instance
c:\jdk7\bin\jawaw.exe yourprogram
How to tell your system which Java version to use is explained here:
Why does java -version returns old version?
JRE [java command] come with your JDK 1.7, and you must change your JAVA_HOME variable to your JDK 1.7 folder.for this work read this article
I'm trying to install the BlackBerry tablet SDK 0.9.0 for Windows but the installer gives the following error:
Win64 not supported.
The author of the package you are installing did not include support for this platform
Is there a way to trick the installer to think I have a 32-bit OS instead of a 64-bit one?
Ok, this works for Windows 7 x64.
Install a java vm for "Windows" (aka the 32bit version from Oracle)
Reboot after install
Unzip the BlackBerryTabletSDK-Air-Installer-0.9.0-Win.exe installer file (I used 7zip)
Navigate to this file:
BlackBerryTabletSDK-Air-Installer-0.9.0-Win\Windows\BlackBerryTabletSDK-Air-Installer-0.9.0.201010221500.lax
Locate this property:
lax.nl.current.vm=
Set it to the location where you installed the 32 bit jvm (for me):
lax.nl.current.vm=C:/Program Files (x86)/Java/jdk1.6.0_22/bin/java.exe
Save the file
Double click the BlackBerryTabletSDK-Air-Installer-0.9.0.201010221500.exe 6.