Morqs daily noob issue #2: Why doesn't webstart start? /solved/

So I do realize that this doesn't really fit this board, but oh well, you guys are only one I can ask for help atm :frowning:

So, I've build my jnlp file:



<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="file:///C:/Lumena/to_sign/" href="main.jnlp"
>

  <information>
    <title>Title</title>
    <vendor>your name</vendor>
    <description>Description</description>
    <description kind="short">short desc</description>
    <offline-allowed/>
  </information>
  <security>
      <all-permissions/>
  </security>
  <resources>
    <jar href="Praca.jar"/>
    <jar href="jme.jar" />
    <jar href="jme-model.jar" />
    <jar href="jme-awt.jar" />
    <jar href="jme-scene.jar" />
    <jar href="lwjgl.jar" />
    <jar href="jogg-0.0.7.jar" />
    <jar href="jorbis-0.0.15.jar" />
  </resources>
 
  <resources os="Windows">
     <j2se version="1.5+"/>
    <nativelib href="windows-native.jar"/>
  </resources>
  <resources os="Mac OS">
    <j2se version="1.5+"/>
    <nativelib href="macos-native.jar"/>
  </resources>
  <resources os="Linux" arch="i386">
    <j2se version="1.5+"/>
    <nativelib href="linux-native.jar"/>
  </resources>
  <application-desc main-class="praca.Main"/>
  <component-desc/>
</jnlp>



Everything  loads, no error messages or anything, after everything gets loaded, nothing else happens, application seems to shut down at once.

Any idea what am I doing wrong? Or what can be cause of it happening? Or how to view errors?

there is an error message probably, but you don't see it, because the java console, doesn't stay open.

In your java control panel (start -> controlpanel-> java) make sure to enable tracing and logging whatever it is called.



Then you can see the java logfiles in:

C:Documents and Settings<name>Application DataSunJavaDeploymentlog

Thanks for your reply :slight_smile:

Yeh I found log file earlier but have no idea what to do with it, again, file compiles perfectly and runs under netbeans.



Here's log file:



Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:Documents and SettingsManiek


c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>

java.lang.NullPointerException
   at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
   at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
   at sun.applet.AppletPanel.createApplet(Unknown Source)
   at sun.plugin.AppletViewer.createApplet(Unknown Source)
   at sun.applet.AppletPanel.runLoader(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-11" java.lang.NullPointerException
   at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
   at sun.plugin.AppletViewer.showAppletException(Unknown Source)
   at sun.applet.AppletPanel.runLoader(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
   at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
   at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-null" java.lang.NullPointerException
   at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
   at sun.plugin.AppletViewer.showAppletException(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

i don't know what could cause this Null pointer exception, i would try to debug it in the applet viewer and see which object/reference is null.



maybe some initialization is missing or faulty ?

I do wonder however, it seems to be connected with applets… but my application is not applet at all :o

hehe doh, right your want a webstart, maybe your .jnlp file extension is somehow connected to the appletviewer.



try to call explicitly call "javaws.exe main.jnlp"

Okay I'm stupid, think I know how to fix it, will post later.

EDIT

So! I've found what was wrong before, but encountered another error. When running jar, everything works, ok, however when I try to run webstart (same as above), I'm getting following error now:


java.lang.LinkageError: Version mismatch: jar version is '12', native libary version is '11'
   at org.lwjgl.Sys.&lt;clinit&gt;(Sys.java:105)
   at org.lwjgl.opengl.Display.&lt;clinit&gt;(Display.java:111)
   at com.jme.system.lwjgl.LWJGLPropertiesDialog.&lt;init&gt;(Unknown Source)
   at com.jme.app.AbstractGame.getAttributes(Unknown Source)
   at com.jme.app.BaseGame.start(Unknown Source)
   at praca.Main.main(Main.java:238)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


What may be the reason?

EDIT_2
Sigh! Captain Obvious strikes again, my jnlp was pointing at other folder in which I had other version of lwjgl -.-
Thanks a lot for your help Core-Dump :)