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

How to install and run on windows (Pls check)
http://forum.jmule.org/viewtopic.php?f=8&t=7176
Page 1 of 1

Author:  BanditQuest [ Sat Feb 09, 2013 10:39 am ]
Post subject:  How to install and run on windows (Pls check)

I have searched and cannot find any info for a novice first time windows jmule user.

Here is what should be written up somewhere I hope saves the next person doing this.
Are these install step correct?


  • Step 1.
    The download file you need is the zip file not jar file (that's not obvious)
    jmule-0.5.8.zip not jmule-0.5.8.jar

  • Step 2.
    Unzip to where you want to install it. (eg %programfiles%\Jmule)

  • Step 3:
    Run jmule.exe

  • Step 4.
    You get the following questions:


    Choose share folder:
    Make a empty folder to share (I think)


    Username and port screen
    - leave default as I have no idea what to do here


    Network bandwidth selection screen
    goto http://www.speedtest.net to get you speed grading
    entered custom value choice
    (note: up and down have same units - the layout may imply to some that one speed is in Kbits/s other is Kbytes - but its just a bad layout)


    Choose UI
    - default is SWT as I have no idea which is better for windows


    Finish jmule.exe setup wizard.

  • STEP 5:
    Create shortcut to jmule.bat and pick icon from jmule.exe

  • STEP 6:
    NOW WHAT DO I DO ???
    jmule.exe still running in background but no visible UI is being shown.
    The default port is open
    Do I ...


    Open shortcut to jmule.bat (is this console only startup)
    or
    Do I run jmule.exe (is this UI start up)


My Platform details:
jmule-0.5.8
Java 1.7.0_04 Oracle Corporation SWT v4233, win32
Windows XP v5.1, x86


(BTW, new forum users need to be able to find a posting guide like https://www.phpbb.com/support/documenta ... osting.php - not everyone is a phpBB expert)

Author:  BanditQuest [ Sat Feb 09, 2013 10:57 am ]
Post subject:  Re: How to install and run on windows (Pls check)

running jmule.bat after shutting jmule.exe gives this message

Code:
> java -Xmx128m  -cp .\lib\swt-windows\swt.jar;.\lib\swingx-0.9.3.jar;jmule.jar;. org.jmule
.main.Main
Feb 09, 2013 6:50:45 PM org.jmule.core.aspects.JMuleCoreLogger ajc$before$org_jmule_core_as
pects_JMuleCoreLogger$1$6db84496
INFO:  JMule Core creation
Core starting process initiated
Total start up time = 359
Feb 09, 2013 6:50:45 PM org.jmule.core.aspects.JMuleCoreLogger ajc$after$org_jmule_core_asp
ects_JMuleCoreLogger$2$6b74d706
INFO:  JMule Core started
java.lang.IllegalAccessError: tried to access class sun.management.ManagementFactory from c
lass org.jmule.ui.swing.maintabs.statistics.StatisticsTabs
        at org.jmule.ui.swing.maintabs.statistics.StatisticsTabs.<init>(StatisticsTabs.java
:77)
        at org.jmule.ui.swing.mainwindow.MainWindow.<init>(MainWindow.java:125)
        at org.jmule.ui.swing.JMuleSwingUI.initialize(JMuleSwingUI.java:66)
        at org.jmule.ui.JMuleUIManager.create(JMuleUIManager.java:101)
        at org.jmule.ui.JMuleUIManager.create(JMuleUIManager.java:120)
        at org.jmule.main.Launcher.<init>(Launcher.java:117)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.jmule.main.Main.main(Main.java:73)

Author:  BanditQuest [ Sun Feb 10, 2013 10:27 pm ]
Post subject:  Re: How to install and run on windows (Pls check)

I did some investigation on the error message mentioned above and jre7 and jmule do not seem compatible.

Reason:
Quote:
There's a problem with a non-official sun.management.* package that is used to obtain information about the OS and the CPU usage. The class is packed in the JDK6 but it is considered as a support class, outside of the official classes, which are all contained under java.* package.

The bad news is that in JDK7 those unofficial classes have finally been moved under the official package tree --> java.lang.management.*, thus creating an incompatibility with previous JDKs.
My only suggestion for the moment is to stick with JDK6, we will fix this in a later release.

ref: http://www.smartfoxserver.com/forums/vi ... 22&t=13587

This also applies to JRE setup for end user. If you do not have java 2.6.x installed, goto http://java.com/en/download/manual_v6.jsp and download jre 6. Run Install and make sure you use custom install path to jmule-path. That is, "jmule-path" is path to your jmule.jar file

To get jmule to run I modified jmule.bat as follows:
Code:
@set JAVA_HOME=jmule-path
@jmule-path\bin\java -Xmx128m  -cp .\lib\swt-windows\swt.jar;.\lib\swingx-0.9.3.jar;jmule.jar;. org.jmule.main.Main


This installs jre 6.39 just for jmule to use so does not interfere with jre 7 or above. So far all java apps seem to be happy with jre6 added to a jre7 machine.

Running it with bat file means a win32 console open with logging messages from java and main UI window as well.


Is that the way it would normally run with two windows?

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