Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » NatTableExamples(Cant get NatTableExamples working)
NatTableExamples [message #940183] Thu, 11 October 2012 11:49 Go to next message
Steven Snoeijen is currently offline Steven Snoeijen
Messages: 3
Registered: October 2012
Junior Member
Hi,

I'm new to NatTable and trying to open the NatTableExamples by the http://eclipse.org/nattable/documentation.php?page=getting_started .
Now I got the 2 SWT jars simply from the eclipse directory (on my pc) and copied this to a folder with the "NatTableExamples-0.9.0.jar" and "org.eclipse.nebula.widgets.nattable.core-0.9.0.jar".

Started this in cmd with
java -jar org.eclipse.swt_3.100.1.v4234e.jar;org.eclipse.swt.win32.win32.x86_3.100.1.v4234e.jar;NatTableExamples-0.9.0.jar org.eclipse.nebula.widgets.nattable.examples.NatTableExamples

gives me the following error:
Error: Unable to access jarfile org.eclipse.swt_3.100.1.v4234e.jar;org.eclipse.swt.win32.win32.x86_3.100.1.v4234e.jar;NatTableExamples-0.9.0.jar

I also tried with adding spaces after the ;.

I searched some more and found the "NatTableExamples.jnlp", but this thing looks like its starting, asks to accept the risk of running that application, but after accepting that I get the message that it is
Unable to launch the application
.

Can anyone tell me what I'm doing wrong?
Thanks.

Sincerely,
steven
Re: NatTableExamples [message #940191 is a reply to message #940183] Thu, 11 October 2012 11:58 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1289
Registered: July 2012
Senior Member
Hi,

are org.eclipse.swt_3.100.1.v4234e.jar and org.eclipse.swt.win32.win32.x86_3.100.1.v4234e.jar at the same directory? Or at least within the classpath? Otherwise your java command is not able to find those jars.

Greez,
Dirk
Re: NatTableExamples [message #940340 is a reply to message #940191] Thu, 11 October 2012 14:46 Go to previous messageGo to next message
Steven Snoeijen is currently offline Steven Snoeijen
Messages: 3
Registered: October 2012
Junior Member
I copied all the (3) jars to 1 directory.
Re: NatTableExamples [message #941428 is a reply to message #940183] Fri, 12 October 2012 14:12 Go to previous messageGo to next message
Steven Snoeijen is currently offline Steven Snoeijen
Messages: 3
Registered: October 2012
Junior Member
Finally got some result, I created a project for testing, added the 4 needed libs and then started the NatTableBuilderExample.main(args).
After that I searched for the NAtTableExamples, and finally it looks like it working. Not really how it should work but I have results Smile

I can continue! Smile
Re: NatTableExamples [message #941708 is a reply to message #941428] Fri, 12 October 2012 19:40 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1289
Registered: July 2012
Senior Member
Hi,

sorry, we are investigating about this. Normally it should work as described. But I also have the same issue, doesn't know why. We will post here after we have found the solution.

Glad you have found a workaround so you can continue. Smile

Greez,
Dirk
Re: NatTableExamples [message #947806 is a reply to message #941708] Wed, 17 October 2012 13:04 Go to previous message
Renso Lohuis is currently offline Renso Lohuis
Messages: 44
Registered: July 2012
Member
I also had some trouble getting it to work, but I think I solved it by excluding swt.jar from the classpath.

I ended up starting it with the following:
java -cp C:\Eclipse_4_2_RC3\plugins\org.eclipse.swt.win32.win32.x86_64_3.100.0.v4232d.jar;NatTableExamples-0.9.0.jar org.eclipse.nebula.widgets.nattable.examples.NatTableExamples
Previous Topic:Click on column header (select) gives an NullPointerException
Next Topic:Property Changes on EventList / EventLayer working for adding/removing list elements only
Goto Forum:
  


Current Time: Sun Sep 21 10:25:44 GMT 2014

Powered by FUDForum. Page generated in 0.02477 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software