JMule project forum

JMule - Java file sharing client
 

It is currently Sun May 28, 2017 2:54 am

Your Ad Here


Post new topic Reply to topic  [ 5 posts ] 
Author Message
Offline
 Post subject: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode
PostPosted: Tue Jul 14, 2009 2:01 am 
 Profile

Joined: Tue Jul 14, 2009 1:32 am
Posts: 3
Have the following difficulty when trying to select my UI mode preference as CONSOLE instead of the GUI options, SWING or SWT. SWING has worked but my PC is very slow (586) and has little memory (128MB). So I would love to use CONSOLE mode.

Screen dump is as follows:
----------------------------------
[[email protected] jmule]# ./jmule.sh
java.lang.NullPointerException
at org.jmule.main.Launcher.<init>(Launcher.java:71)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jmule.main.Main.main(Main.java:73)
[[email protected] jmule]# cat /etc/.java/.systemPrefs/org/jmule/ui/prefs.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE map SYSTEM "http://java.sun.com/dtd/preferences.dtd">
<map MAP_XML_VERSION="1.0">
<entry key="ui_type" value="CONSOLE"/>
</map>
[[email protected] jmule]#
[[email protected] jmule]# cat jmule.sh
#!/bin/bash
/root/java_install/jre1.6.0_14/bin/java -Xmx128m -cp lib/swt-linux/swt.jar:lib/swingx-0.9.3.jar:jmule.jar:. org.jmule.main.Main
[[email protected] jmule]#
------------end of screen dump----------

Can anyone suggest how I might hack to get CONSOLE mode working? I don't mind altering the source if need be.


Top
 

Offline
 Post subject: Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode
PostPosted: Tue Jul 14, 2009 7:58 am 
JMule staff member
JMule staff member
 WWW  Profile

Joined: Fri Jul 11, 2008 4:34 pm
Posts: 43
Hello aldan,

Currently JMule doesn't support console ui, I've received many requests for console ui from community members, we'll add this type of ui as soon as possible

have a nice time

javajox, JMule developer


Top
 

Offline
 Post subject: Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode
PostPosted: Fri Aug 07, 2009 1:11 am 
 Profile

Joined: Tue Jul 14, 2009 1:32 am
Posts: 3
That's great to hear CONSOLE UI mode is on its way. Its the way I'm going to have to use it with my very ancient Linux box. Would you please post back on this forum thread once the CONSOLE mode functionality has been built in.

Alternatively please also post back to this forum thread if you think I could relatively easily add it myself. I've got a software development background and have done plenty of hacking of other peoples' software -- enough to know that a couple of tips from those familiar with the code, on where to start hacking, can really save time ! Appreciate the great job you're doing with this project.


Top
 

Offline
 Post subject: Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode
PostPosted: Fri Aug 07, 2009 4:03 pm 
JMule staff member
JMule staff member
 WWW  Profile

Joined: Fri Jul 11, 2008 4:34 pm
Posts: 43
> Would you please post back on this forum thread once the CONSOLE mode functionality has been built in
Okay
> Alternatively please also post back to this forum thread if you think I could relatively easily add it myself
No, this is not an easy thing to do
> "very ancient Linux box"
Can you specify more precisely ? Which Linux and hardware configuration ?


Top
 

Offline
 Post subject: Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode
PostPosted: Sun Mar 14, 2010 10:09 pm 
 Profile

Joined: Tue Jul 14, 2009 1:32 am
Posts: 3
I happen to be using a Pentium 100MHz running a very much modified RedHat 7.1 and linux kernel 2.4.20-28.7

I hope the specifics of the hardware platform and OS are quite that important for adding in a console UI mode for jMule.


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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