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 236765

Summary: Project run with Java Web Start fails
Product: projects Reporter: druta <druta>
Component: Java WebstartAssignee: Tomas Zezula <tzezula>
Severity: normal CC: neigor
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: JWS error message

Description druta 2013-10-04 13:44:56 UTC
Created attachment 140807 [details]
JWS error message

Simple Java Application (withNetbeans 7.4 RC1 and Java 7) run with Java Web Start failure;
Java Web Start starts but i get the following error message (see also Attachment):

java.lang.NumberFormatException: For input string: "\nbrojekte\TestJnlp\dist"
	at java.lang.NumberFormatException.forInputString(
	at java.lang.Integer.parseInt(
	at java.lang.Integer.parseInt(
	at Source)
	at Source)
	at Source)
	at Source)
	at com.sun.jnlp.JNLPClassLoader.getTrustedCodeSources(Unknown Source)
	at$ParentCallback.strategy(Unknown Source)
	at$ParentCallback.openClassPathElement(Unknown Source)
	at$JarLoader.getJarFile(Unknown Source)
	at$JarLoader.access$1000(Unknown Source)
	at$JarLoader$ Source)
	at Method)
	at$JarLoader.ensureOpen(Unknown Source)
	at$JarLoader.<init>(Unknown Source)
	at$ Source)
	at Method)
	at Source)
	at Source)
	at Source)
	at Method)
	at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at Source)
Comment 1 bill7511 2014-02-11 21:55:43 UTC
Hello, same for me on projet tutorial convertPrj .Local execution. Launching the jar works directely, but not from the launch.jnlp.

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows 7 version 6.1 running on amd64; Cp1252; fr_CH (nb)
User directory: C:\Users\Benoit\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\Benoit\AppData\Local\NetBeans\Cache\7.4

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Users/Benoit/Documents/NetBeansProjects/ConverterPrj/dist/" href="launch.jnlp" spec="1.0+">
        <homepage href=""/>
        <description kind="short">ConverterPrj</description>
    <update check="background"/>
        <j2se version="1.5+"/>
        <jar href="ConverterPrj.jar" main="true"/>
    <application-desc main-class="Converter">
Comment 2 Tomas Zezula 2014-02-14 08:12:12 UTC
Not a NB issue, javaws problem.I've tested with JDK 1.7.0_45 and works fine.Please update JDK   JRE.