JMule project forum
http://forum.jmule.org/

Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode
http://forum.jmule.org/viewtopic.php?f=8&t=225
Page 1 of 1

Author:  aldan [ Tue Jul 14, 2009 2:01 am ]
Post subject:  Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode

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.

Author:  javajox [ Tue Jul 14, 2009 7:58 am ]
Post subject:  Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode

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

Author:  aldan [ Fri Aug 07, 2009 1:11 am ]
Post subject:  Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode

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.

Author:  javajox [ Fri Aug 07, 2009 4:03 pm ]
Post subject:  Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode

> 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 ?

Author:  aldan [ Sun Mar 14, 2010 10:09 pm ]
Post subject:  Re: Using JMule 0.5 in CONSOLE mode instead of SWING or SWT mode

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/