Re: org.netbeans.swing.outline in mac
On May 14, 2:33 pm, oren7...@gmail.com wrote:
I made a jar in Windows that works but in the mac OS i get exception:
java -cp jars -jar project.jar
I cannot understand how that command 'worked' in Windows.
- Specifying -jar, makes the -cp be ignored.
- '-cp jars' should probably be '-cp jars/*'
I can only presume that the main jar contained a
manifest that referenced the dependant Jar's, and
that they were found on that path relative to the
main Jar.
Note also the the functionality to add an entire
directory of Jars was introduced in Java 6, so
will probably not work for Mac (which is still
Java 5, AFAIU).
Exception in thread "main" java.lang.NoClassDefFoundError:
org/netbeans/swing/outline/RowModel
(The Jar containing) This non-J2SE class needs
to be added to the runtime classpath, for the
app. to work.
Note that the simplest way to do that, for a GUId
app (I am guessing by the reference to 'swing') is
to launch it using webstart, and add the dependant
jars in the resources element of the JNLP file.
--
Andrew T.
pscode.org