JMule project forum

JMule - Java file sharing client
 

It is currently Mon Sep 25, 2017 10:14 pm

Your Ad Here


Post new topic Reply to topic  [ 4 posts ] 
Author Message
Offline
 Post subject: How do I start the program?
PostPosted: Sat Jul 21, 2012 12:09 am 
 Profile

Joined: Sat Jul 21, 2012 12:05 am
Posts: 1
Hi,

I'm using Mac OS X.

On the command line I typed:
java -cp swt.jar -jar jmule.jar

but I still got a ClassNotFound Error, it can't find org.eclipse.swt.widgets.Display eventhough the Classpath is correct.

Does anybody else experience similar problems?


Top
 

Offline
 Post subject: Re: How do I start the program?
PostPosted: Sat Jul 21, 2012 3:42 pm 
JMule staff member
JMule staff member
 WWW  Profile

Joined: Fri Jul 11, 2008 4:34 pm
Posts: 43
Hi guenni68,

You should use the mac version of swt. It is not bundled with the default archive which you've downloaded from the site

Have a nice time


Top
 

Offline
 Post subject: Re: How do I start the program?
PostPosted: Fri Oct 26, 2012 1:18 pm 
 Profile

Joined: Fri Oct 26, 2012 1:10 pm
Posts: 1
sorry , i have a Mac osx and i was trying to start your project with no effects.

I know that i need the following class with your jar to start it :

-rw-r--r-- 1 hellfire73 staff 512653 17 Gen 2012 jface.jar
[email protected] 1 hellfire73 staff 2370408 14 Set 20:15 swt-debug.jar
[email protected] 1 hellfire73 staff 1760744 14 Set 20:15 swt.jar
[email protected] 1 hellfire73 staff 2861940 26 Ott 11:37 jmule-0.5.8.jar
[email protected] 1 hellfire73 staff 1290685 26 Ott 14:58 swingx.jar

using this command

java -cp $CLASSPATH -Djava.library.path=./swt.jar:./swt-debug.jar -jar jmule-0.5.8.jar


the error is always the same :

::/Users/hellfire73/Desktop/JMule/jface.jar:/Users/hellfire73/Desktop/JMule/jmule-0.5.8.jar:/Users/hellfire73/Desktop/JMule/swingx.jar:/Users/hellfire73/Desktop/JMule/swt-debug.jar:/Users/hellfire73/Desktop/JMule/swt.jar
java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.jmule.main.Main.main(Main.java:62)
REMARK: It seems you don't have one of the following .jar files in classpath : swt.jar, swingx.jar
you can found these jars on http://www.eclipse.org/swt and http://swingx.dev.java.net
If you need open support don't hesitate to contact us on http://forum.jmule.org

Are you sure Does it works under mac osx?

P.S.
i don't know but i suppose it's better you prepare some install packages for the different platform to help user to play with it


Top
 

Offline
 Post subject: Re: How do I start the program?
PostPosted: Tue Oct 30, 2012 7:08 pm 
JMule staff member
JMule staff member
User avatar
 Profile

Joined: Fri Jul 11, 2008 4:10 pm
Posts: 33
Hello christian,

The SWT UI is not working on MacOS, here are the steps in order to start SWING UI :
1. Download SWT from http://download.eclipse.org/eclipse/downloads/drops4/R-4.2.1-201209141800/#SWT
2. Extract the archive and place swt.jar into lib directory of {jmule home}
3. Create a txt file {jmule home}/settings/jmule_ui.properties with following content :
Code:
org.jmule.ui.ui_type=SWING

4. Start jmule in following way :
Code:
java  -Xmx128m -cp lib/swt.jar:lib/swingx-0.9.3.jar:jmule.jar:. org.jmule.main.Main

Thank you


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Contact : jmule [at] jmule.org
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group