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.

Bug 220918 - Cannot run JavaWS on OS X - javaws not present in JDK_HOME/jre/bin
Summary: Cannot run JavaWS on OS X - javaws not present in JDK_HOME/jre/bin
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Petr Somol
URL:
Keywords:
: 223650 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-26 12:57 UTC by Tomas Danek
Modified: 2013-01-03 02:41 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2012-10-26 12:57:31 UTC
Product Version: NetBeans IDE Dev (Build 201210220002)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
System: Mac OS X version 10.8.2 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
------------
- create new java app
- enable web start
- switch webstart configuration
- run

...
...
Executing '/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/jre/bin/javaws' with arguments:
'/tmp/testws/dist/launch.jnlp'
The ' characters around the executable and arguments are
not part of the command.
/tmp/testws/nbproject/jnlp-impl.xml:381: Execute failed: 
java.io.IOException: Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/jre/bin/javaws" (in directory "/tmp/testws"): error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
...


javaws binary in not present in bin/ nor jre/bin/
Comment 1 Antonin Nebuzelsky 2012-10-26 13:13:59 UTC
JDK bug filed about missing javaws binary in Java 7uX on Mac.

#JDK-8001623
Comment 2 David Strupl 2012-10-29 15:01:08 UTC
The bug has been entered for JDK.
Comment 3 Tomas Zezula 2012-12-11 12:56:08 UTC
*** Bug 223650 has been marked as a duplicate of this bug. ***
Comment 4 Stepan Zebra 2012-12-11 13:52:45 UTC
Please re-evaluate the situation. JDK team deferred the issue to JDK 8 and explains current state as designed.
Impact for NB is that WebStart run configuration won't work on any Mac with JDK 7, because jnlp-impl.xml expects javaws at location where it doesn't exist.
Comment 5 Tomas Zezula 2012-12-11 13:56:36 UTC
>explains current state as designed.
Not true, it's still open as a valid issue.

>Impact for NB is that WebStart run configuration won't work on any Mac with JDK
>7, because jnlp-impl.xml expects javaws at location where it doesn't exist.
From a user selected platform.
Comment 6 David Strupl 2012-12-11 15:54:24 UTC
As pointed out the bug is entered into the bug tracking system for JDK.

While we might workaround it in our code the best place for fix is on the JDK side. BTW they broke it for all of our already released versions.

Lowering priority as the bug is in java web start - this technology is not being widely used (and supported by JDK team).

Closing again as won't fix since it should be fixed on JDK side where it is entered.
Comment 7 David Strupl 2012-12-11 16:11:00 UTC
Passing to Petr to attempt a workaround on our side.
Comment 8 Petr Somol 2013-01-02 13:23:50 UTC
added multiple location search of javaws executable, including the workaround location for this issue:
http://hg.netbeans.org/jet-main/rev/a2ff0f0e17fb
Comment 9 Quality Engineering 2013-01-03 02:41:18 UTC
Integrated into 'main-golden', will be available in build *201301030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a2ff0f0e17fb
User: Petr Somol <psomol@netbeans.org>
Log: #220918 - Cannot run JavaWS on OS X - javaws not present in JDK_HOME/jre/bin