NetBeans- Java Fx(mobile) could'n buld the projecjt - netbeans

I have an error in NetBeans(mobile business application)
I have installed JDK (latest version jdk1.6.0_21)
After this I had an error:
Cannot run program "C:\Program Files (x86)\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified
BUILD FAILED (total time: 1 second)
Then in "Advanced system settings"->Environment variables
I added a new line in "system variables" - "JAVA_HOME" ,value - C:\Program Files\Java\jdk1.6.0_21 (my path to JDK)
Then i had "unknown error"
See in the screen..->
http://img693.imageshack.us/img693/6423/screencc.png' border='0' width="300px" height="300px"> or url http://img693.imageshack.us/img693/6423/screencc.png
Thanks for the answers!

I think this is specific to your machine setup. javac is the Java compiler, but it's looking for it inside C:\Program Files (x86)\Java\jre6\ instead of C:\Program Files (x86)\Java\jdk1.6.0_21\.
Let's try to dig through this:
Did you uninstall your previous JDK after you installed JDK6u21?
Did you uninstall your JRE?
What OS are you running? Windows 7 64?
Go to your Add/Remove Programs. You need the following entries:
What do you have in your C:\Program Files (x86)\Java\?

AFAIK, you have to install both the 32-bit and 64-bit version of the JDK.

Related

Error when open eclipse - MAC

I have installed eclipse on my iMac and when I try to open it, it gives me this error:
Failed to find a Main Class in
"/Applications/Eclipse.app/Contents/MacOS//../Eclipse/ plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar".
On my MacBook Pro, everything works fine, but I have done nothing different.
I have checked other posts, but most of them refer to a windows OS. There was an answer which said that it can just open when everything is in an English folder and this is true for me!
Thanking you in advance!
I came across this error after installing Eclipse PDT.
Open your terminal and run the version command: java -version.
If your java version is below 1.8, you will have to update your Java
Runtime Environment to at least 1.8.0 by installing an updated JDK
here.
Then re-run the java version command and your version
should be updated.
You should now be able to install and run
Eclipse.
I have the same issue, but on my MacBookPro. I first installed eclipse Photon, which when starting up prompted me to install Java 6, which I did from https://support.apple.com/kb/DL1572?locale=en_US
Then I also installed the latest JRE (jre-8u171-macosx-x64 as of yesterday). When running eclipse again I started getting this error. Then I tried to run from the command line, and got this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/equinox/launcher/Main : Unsupported major.minor version 51.0
When googling that, the answers said that the reason for that is that the Oracle installer does not update the symlink in /usr/bin, which seemed to be confirmed by the fact that running java -version returned this:
java -version
java version "1.6.0_65"
The solutions I found for that were not feasible in MacOS starting in version El Capitan, and I am on High Sierra, so I followed the instructions in this post to fix that, and it worked, now I get:
java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
After all of this, however, I get the same "Failed to find a Main Class" error on the dialog as reported initially here, and the same "UnsupportedClassVersionError" on the CLI that I had when the system was still on java 6, so now I am still stuck and out of ideas.
EDIT: FIXED IT!!
I kept thinking that the problem was the java version, it was somehow still using java 6 (which I had installed due to the initial prompt).
So I followed the instructions here to remove what I had installed for the alleged java 6 issue. Then I found this post in the eclipse forums, which stated at the end (comment added by Eric Rizzo on Tue, 14 February 2017 21:56) that this is not an Eclipse message, but rather an OS message, and that one should NOT do that as apple messed things up with that patch. And then it goes to explain that one should install java 8 JDK (NOT just the JRE as I had done). Once I removed Java 6 and installed the full java 8 JDK, it ran fine :)
You can edit the eclipse.ini with your vm configuration in the beginning of the file
-vm
/yourJvmPath/jdk-12.0.1.jdk/bin/java
cat /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini
-vm
/Users/SomeUser/jdk-12.0.1.jdk/bin/java
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.400.v20190515-0925.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1000.v20190125-2016
PD. It works with ApacheDirectoryStudio for MAC
This one works for me with MAC OS Mojave.
You can download the Java SE Development Kit 8u221 for mac from the below link.
jdk-8u221-macosx-x64.dmg
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Trouble compiling LiquidFun Paint - "Found SWIG , requires 2.0.11 or above. Stop"

I am having trouble compiling LiquiFun Paint
I am using Eclipse. I receive
Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException:
Cannot run program "cygpath": CreateProcess error=2, The system cannot
find the file specified
I am using Windows 8.1. I have set the following Environment Variables in Eclipse:
LIQUIDFUN_SRC_PATH
NDKROOT
SWIG_BIN
(there is a value for CYGWIN of nodosfilewarning)
I get the folling error in Eclipse:
C:\ndk\ndk-build.cmd" all process_begin: CreateProcess(NULL,
C:\swigwin-2.0.1 -version, ...) failed.
C:\liquidfun-master\liquidfun\Box2D/../Box2D/swig/jni/Android.mk:62:
*** Found SWIG , requires 2.0.11 or above. Stop.
I have installed SWIG 3.0.5 and tried 2.0.1. Both result in the same error above.
In addition to the above error there are compiler errors for
import com.google.fpl.liquidfun.World;
it cannot find that import.
I am using Build Command ${NDKROOT}/ndk-build.cmd
I am using r10e (64-bit) NDK
Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find the file specified
Try running your build in a cygwin shell? Something like:
C:\cygwin\bin\bash /cygdrive/c/ndk/ndk-build.cmd
CreateProcess(NULL, C:\swigwin-2.0.1 -version, ...)
What is your SWIG_BIN set to? It looks like it's set to "C:\swigwin-2.0.1" but should probably be set to something like "C:\swigwin-2.0.1\swig.exe"

Eclipse gives the error of JNI shared library

Eclipse is unable to open, I installed a fresh copy of jre7 and eclipse but it did not work. First it gives the error message "cannot find virtual machine", so I write path of bin in eclipse.ini file. but now it gives the error message "Failed to load the jni shared library C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll".
how can i fix this problem? I have a 64 bit os. The jre and eclipse are also of 64 bit. so what is the problem?

Eclipse cygwin error - make: *** No rule to make target `all'. Stop

From today afternoon I am trying to setup C/C++(cygwin gcc/g++) compiler for Eclipse Helios in Windows 7 inorder to run OpenGL applications in Eclipse(I have already configured Visual Studio 2008 for running OpenGL applications and programs are also running in it), but I'm unable to run a small C program successfully in Eclipse. Till now I have added gcc/g++ include files and some library files in project properties under C/C++ general->paths and symbols
They are:
Includes
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\include,
C:\cygwin\usr\include,
C:\cygwin\usr\include\w32api,
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\include\c++\backward
Libraries
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\GlU32.Lib,
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\glut32.Lib,
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\opengl32.Lib
Library path
C:\cygwin\lib\w32api
After including all these and with successfully building the program, I'm unable to run the program, which gives me an error
"make: * No rule to make target
`all'. Stop."
How should i solve this problem?

Error when installing plugin in Eclipse

When I try to install a plugin in Eclipse I get these error messages
Registry event dispatcher
Error notifying registry change listener.
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Has someone an idea what the cause of this problem could be? Thanks
Edit:
I see the Eclipse .log file has also a lot of new stack traces
The first one is
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=nl_NL
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.equinox.registry 4 2 2010-05-06 21:04:31.236
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.registry".
!STACK 0
org.eclipse.core.runtime.InvalidRegistryObjectException: Invalid registry object
at org.eclipse.core.internal.registry.TemporaryObjectManager.getObject(TemporaryObjectManager.java:98)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtensionPoint(BaseExtensionPointHandle.java:106)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getContributor(BaseExtensionPointHandle.java:45)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getNamespace(BaseExtensionPointHandle.java:37)
at org.eclipse.ui.internal.PopupMenuExtender.registryChanged(PopupMenuExtender.java:520)
at org.eclipse.core.internal.registry.ExtensionRegistry$2.run(ExtensionRegistry.java:921)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.registry.ExtensionRegistry.processChangeEvent(ExtensionRegistry.java:919)
at org.eclipse.core.runtime.spi.RegistryStrategy.processChangeEvent(RegistryStrategy.java:260)
at org.eclipse.core.internal.registry.osgi.ExtensionEventDispatcherJob.run(ExtensionEventDispatcherJob.java:50)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Edit2:
When I restart Eclipse I get a "install connectors" window, but when I select a connector and click on "Finish" nothing happens and there appears an "Unhandled event loop exception" in the Eclipse log
Edit3:
I tried Subclipse instead of Subversive but that gives these errors
Failed to load JavaHL Library.
These are the errors that were encountered:
no libapr-1 in java.library.path
no libapriconv-1 in java.library.path
C:\Program Files (x86)\Zend\Core\bin\libeay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
C:\Program Files (x86)\Zend\Core\bin\ssleay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
no libaprutil-1 in java.library.path
no libsvn_subr-1 in java.library.path
no libsvn_delta-1 in java.library.path
no libsvn_diff-1 in java.library.path
no libsvn_wc-1 in java.library.path
no libsvn_fs-1 in java.library.path
no libsvn_repos-1 in java.library.path
no libsvn_ra-1 in java.library.path
no libsvn_client-1 in java.library.path
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = C:\Windows\system32;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Zend\Core\bin;C:\Program Files (x86)\Zend\Core\oic;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_20\bin
Is there a possibility that the installed Eclipse version conflicts with another installed Eclipse version or with Zend Studio?
It's problem with x64 Java.
With x64 java you need to use JavaHL with x64 support
This is official FAQ
http://subclipse.tigris.org/wiki/JavaHL#head-0ae839721445e3f59d10a128ec9439d4f4988d5f
I have same installation and it works after steps from FAQ
Edit: You may also need to edit your PATH variable (in Windows at least) to include the bin folder from the SlikSVN install that is recommended in the subclipse FAQ listed above.
If you are installing Subclipse plugin for SVN in eclipse on windows7 64 bit. Make sure you do not install JavaHL as part of the plugin install options. You need to separately install SilkSVN install outside the eclipse. Steps are here,
First install SilkSVN, than install Subclipse plugin install withouth JavaHL plugin checked.
For Kirk Woll:
Modify your Path in Environment variables
Change C:\Program Files\SlikSvn\bin\ into C:\Program Files\SlikSvn\bin
maybe this can help you.
Install SlikSvn http://www.sliksvn.com/en/download
Change system variables path: C:\Program Files\SlikSvn\bin\ to C:\Program Files\SlikSvn\bin
Did you observe that on a fresh installation of Eclipse?
And in the case of your instance of Eclipse, did you try to relaunch iot a second time? (and still see errors?)
Because when several plugins are already there, this thread mentions (for AJDT but that can be applied to other plugins as well):
The error means that somebody holds on to the handles to the extension registry objects that no longer exists.
Most likely AJDT (or one of the bundles it depends on) maintains persistent cache of registry objects, such as extensions or extension points.
When a bundle is updated, behind the scene the "old" version of the bundle is uninstalled, removing all its registry elements, and when the new version of the bundle is installed, adding new registry element.
If a bundle cached handles for extensions/extension points and did not react to the registry events, it ends up with invalid handles.
I had the same problem, running eclipse 64 bit on windows 7 64 bit, trying to use subclipse and this is how I fixed it:
I have installed eclipse Helios 64 bit.
I have installed jdk 1.6 64 bit.
I have installed subclipse.
I have installed JavaHL (Slik subversion) 64 bit.
I had to make sure eclipse uses the 64 bit version Java when launching (this can be verified when looking at the java.library.path property in eclipse->help->about eclipse->installation details->configuration. Make sure it shows also the path to your 64 bit JDK - if not, change the relevant system environment variable from your windows control panel->system and restart eclipse with the -clean variable).