This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | [Solaris] Project build fails: Error: JAVA_HOME is not defined, cannot find "java" command. | ||
---|---|---|---|
Product: | javafx | Reporter: | Alexandr Scherbatiy <sunflower> |
Component: | Unsupported | Assignee: | Adam Sotona <asotona> |
Status: | VERIFIED INVALID | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Alexandr Scherbatiy
2009-04-07 13:38:57 UTC
Please report it to JavaFX Jira on binary launchers - they are responsible to find appropriate Java and this message comes from packager launcher. I've analyzed the JavaFX startup scripts and it should work even in extreme cases. Please report this issue to Jira with your system configuration (Java installed - where and how, JAVA_HOME set or not, etc...). one more important info - what happen if you type "java" or "javac" into console or "which java" or "which javac". duke@sol-equilibrium:~$ which java /usr/bin/java duke@sol-equilibrium:~$ which javac which: no javac in (/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin) duke@sol-equilibrium:~$ duke@sol-equilibrium:~$ java Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) duke@sol-equilibrium:~$ javac bash: javac: command not found It is still reproduced on my system. Yes, it is and it will be reproducible until you install some usable JDK on your machine. With the result given from "which javac" - you did not install any. I can create a Java project in NetBeans, compile and run it. It means that I have right JDK on my system. Let see. - Create a Java project - Build it There is no errors. - Create a JavaFX project - Build it Error: JAVA_HOME is not defined, cannot find "java" command. The results for Java and JavaFX projects should be the same. You don't have the right JDK: which javac which: no javac in (/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin) You've only unzipped JDK somewhere and pointed NetBeans to that location. JavaFX SDK is a complex set of tools that must work independently of NetBeans - but I think I've repeated this several times. Passing JAVA_HOME to one of the tools will not fix the problem. If you think your custom machine configuration is a general use case that should be covered and handled by all SDK binary launchers - please fill all details to http://javafx-jira.kenai.com/browse/RT-4139 JIRA issue: RT-4390 Packager does not properly work if JAVA_HOME is not set http://javafx-jira.kenai.com/browse/RT-4390 Cleaning bugzilla categories .... |