Not able to open already created Java ME project in NetBeans - java

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.

Related

NetBeans 12.4 "Warning - could not install some modules: JavaFX wrapper"

I get the following message after exiting out of NetBeans and then re-starting.
Warning - could not install some modules: JavaFX wrapper - No module providing the capability org.openide.modules.jre.JavaFX could be found. Another module could not be installed due to the above problems.
I am using Java 15, with JavaFX. I didn't have the issue with 12.3 and Java 15, but now I get it at least once a day, depending on how often I leave and re-enter.
I have a work-around. I replace the NetBeans cache with a clean copy kept for this purpose, and I can then restart and continue working without the error, but this is a bit tedious after the first couple of times, each day.
Product Version: Apache NetBeans IDE 12.4
Java: 15.0.4; OpenJDK 64-Bit Server VM 15.0.4+5-MTS
Runtime: OpenJDK Runtime Environment 15.0.4+5-MTS
System: Windows 10 version 10.0 running on amd64; UTF8; en_AU (nb)
I have found the solution, I have re-installed, and skipped the installation of the nb-javac plugin. I had forgotten that I did this on my older installations, until I re-read the post below. Everything is fine now.
NetBeans plugin fails if nb-javac installed
What's "nb-javac" in Apache NetBeans?

Cannot run program "C:\Program Files\Java\jdk1.8.0_202\bin\java.exe" Malformed argument has embedded quote: -Djava.endorsed.dirs=

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

NetBeans Installation issues with JDK 10

I'm trying to run NetBeans 8.2.
So I installed the necessary requirement (JDK/JRE) but when I select the JDK folder it's says :
An unknown error has occurred while validating the path.
It's already peculiar that it didn't get recognized automatically but even if I select the folder manually it won't accept it.
]
Use JDK 8, not JDK 10.
The installation instructions for NetBeans 8.2 say:
The Java SE Development Kit (JDK) 8 is required to install NetBeans IDE.

Error when launching kickflip example app using Android Studio for Mac OS X 10.8.4

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

Eclipse VM Won't Run Java 1.6

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.

Categories

Resources