I am working with Eclipse Indigo on a MacBook Pro running Mac OS 10.5.8. I am trying to run the latest version of the Google Android plugin (version 18) but am receiving the following error when I try to create a new Android project:
The selected wizard could not be started.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.
Bad version number in .class file
From what I can tell, the issue is that Eclipse is running under a VM with Java version 1.5. No matter what I do the Eclipse installation details configuration page is reporting:
-vm
/System/Library/Frameworks/JavaVM.framework
java.class.version=49.0
java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
java.ext.dirs=/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
java.io.tmpdir=/var/folders/N-/N-YaOpnxGXqmE8+CqS2VxE+++TI/-Tmp-/
java.library.path=.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_30-b03-389-9M3425
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
I have tried setting -vm in the eclipse.ini file and also in Info.plist I added: -vm/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java
What am I doing wrong? I'm very frustrated here.
Make sure you run the 64-bit Cocoa version of Eclipse 3.5.1, and make sure your JAVA_HOME is set to 1.6.0 and not 1.5.0. Also, set your Preferences->Java->Compiler to 1.6 inside Eclipse.
Related
ERROR: Cannot run program "C:\Program Files\Java\jdk1.8.0_202\bin\java.exe" (in directory "C:\Users\USERNAME\AppData\Local\JetBrains\IntelliJIdea2020.3\compile-server"): Malformed argument has embedded quote: -Djava.endorsed.dirs=
I keep getting this error everytime I Redeploy my Spring Boot project via weblogic server in IntelliJ IDE.
The first time I deploy, everything works just fine. But when I Redeploy the project in order to effect new changes, this error comes up.
My Tools:
IntelliJ IDEA 2020.3 (Ultimate Edition)
WebLogic Server Version: 12.2.1.3.0
Windows 10
Java (JDK) version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
What I have Tried:
I only have one installed JDK and JRE version: 1.8.0_202 installed on my PC
Deleted javaws.exe, javaw.exe & java.exe fields from my Sys32 Folder (A Googled Solution)
Able to view my Java version on cmd when I run: java -version
Path to my jdk is correct: C:\Program Files\Java\jdk1.8.0_202\bin\java.exe
IntelliJ is correctly pointing to my JDK folder JDK Linked to My IntelliJ IDE
My Weblogic configurations look just fine: My Weblogic configurations
I also encountered the same problem.
The reason is that I installed the FindBugs plugin.
You can try to add the following line of parameters to the idea64.exe.vmoptions.
-Djdk.lang.Process.allowAmbiguousCommands=true
For those that need help finding the VM options in the IDE. I'm using IntelliJ IDEA 2021.1 by the way.
On the IDE Toolbar at the top -> click HELP -> Edit Custom VM Options...
Then add this VM option at the bottom (uncluding the hyphen '-' symbol):
-Djdk.lang.Process.allowAmbiguousCommands=true
COMPANY-0034:Home deter_dangler$ pwd
/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
COMPANY-0034:Home deter_dangler$ ls
README.html conf jmods lib
bin include legal release
COMPANY-0034:Home deter_dangler$
Terminal shows I have JDK 9.0 installed and I configured JAVA SE 9.0 in eclipse as below:
But when I am trying configure build path for any Java project as below, it shows Native Library Location as 'None' and shows errors in my .Java file:
What is missing?
EDIT:
Version: Kepler Service Release 1
Build id: 20130919-0819
According to Eclipse's website, (here), Java 9 is only officially supported on Eclipse Oxygen.
If you can, I recommend upgrading to Oxygen so you can avoid compatibility issues.
I am using Mac OS X 10.8.4. Recently i have started using android studio. I installed Homebrew and got installed gradle. I need to try the example for kickflip android SDK, so i checked out the project from GitHub. But the project is not getting launched. It is showing the error
Execution failed for task ':app:packageDebug'. > class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z
I know similar questions has been asked in the stackoverflow itself.
Problems launching error in Android Studio...
Android Studio 0.2.7 build exception with Gradle
Gradle error in app:packageDebug...
Android Studio Bouncy castle issue (newbie)
I tried the solutions provided in those but of no help.
I am using java 1.7.0_09. java -version gives
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
and the gradle is up todate. Please help if anyone encountered the same issue and got fixed.
I managed to get Kickflip running under Eclipse Kepler.
Here are the steps:
1. Download the android-sdk zip file from GutHub sdk
2. Import the sdk in Eclips
3. Move the files in java directory to src directory
4. Create a lib directory and move the armeabi directory in the lib directory
5. Move the lib jar files in the lib directory
6. remove the ffmpgwrapper jar file, because it also exists in the source directory, otherwise you get multiple dexes
7. increase the heap buffers in eclips.ini
-Xms512m
-Xmx1024m
Now it should work
I've a problem with the application installers generated by Netbeans. I have a Netbeans application project with one module. The Java target platform is set to 1.7. The development system is Netbeans 8.0.1 on Mac OS. I generate the installers with "Package as" => "Installers".
When i try to run the installer on an Ubuntu with JRE 1.7 installed it fails with an UnsupportetClassVersionError. When I run the ZIP-packaged application it works fine.
It seems that the class version of the installer is not compatible to 1.7.
So, my question is: Is there any way to configure the Java version of the installer itself?
Try to run NetBeans using JDK 1.7. See the file NetBeans 8.0.1/etc/netbeans.conf - there is a property netbeans_jdkhome - change it to point to a JDK 1.7 home and restart NetBeans IDE.
I was using the NetBeans IDE 7.3, however on open an existing mobility project I get lots of red dots,
on rolling over the dot near the package statement it says
'cannot access java.lang"
Fatal Error:" Unable to find package java.lang in classpath or bootclasspath"
while the other red dots below near other class or Identifier statements say
"cannot find symbol."
I have JDK 1.7.0_11 installed.
I tried the following to correct the errors:
1. Reinstalled JDK 1.7 .
2. Reinstalled NetBeans 7.3.
3. Uninstalled NetBeans 7.3 and installed NetBeans 7.3
However nothing worked.
Product Version: NetBeans IDE 7.3 (Build 201302132200)
Updates: Updates available
Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\SSNEHAL\AppData\Roaming\NetBeans\7.3
Cache directory: C:\Users\SSNEHAL\AppData\Local\NetBeans\Cache\7.3
I also searched google but could not find any valid answers.
What should I do?
Interestingly I get these errors only on Mobility projects and that too on opening an existing Mobility project,
New Mobility and J2SE projects dont give me any errors.
If new projects work, Netbeans probably lost the platform configuration for your project (this happened to me once). To reconfigure it go to Project Properties -> Platform and set the Platform Type and Emulator to your JavaME platform.