Menu

Installation

Help
2003-11-02
2004-08-13
  • Q-collective

    Q-collective - 2003-11-02

    Okay, stupid question (if there is such a thing): How do you install the program? I'm running Linux and I can't find *any* documentation.... shouldn't that be in the package I downloaded??? On the site I can't find a thing either....
    Who can help me out on this one?

     
    • Scott Davis

      Scott Davis - 2003-11-14

      Hi.  The installation info is in the README file in the doc directory when you extract the download file.

      We should have it on the Website, but we don't at the moment.  I'll try to add that with the next release.

      Please let me know if you have any trouble installing and running it with the README documentation.

      Thanks,

      Scott Davis
      Mars Simulation Project
      http://mars-sim.sourceforge.net
      scud1@users.sourceforge.net

       
    • vector

      vector - 2004-08-09

      wow ok warning major! newbie!
      im new to linux and was just probing around when I came across MSP. Being an avid astronomer this tickled my fancy.
      However after downloading MSP tar ball, Jcommon, and Jfreechart Im none the wiser. I read the above comment and figured this was now under /docs/building.txt.
      Which i read, real sorry  Im running debian and Im used to the apt-get install which automagically does it all for me.
      I need someone to hold my hand on this one as Im way outa my depth. Feel free to tell me to forget it and come back when Ive learnt the system but to be honest Id like to give it a go.(best way to learn) I can only state that I will report everything I do and most of what I do ends up on my twiki for others to follow.
      If i get a response to this I will set up a twiki topic and enter what I have done so far. (which is pretty much downloaded files and extracted.)
      Looking fwd to your reply

       
    • Rxke

      Rxke - 2004-08-10

      Not too sure about this, started with Debian last year, but then my computer got damaged (hardware fault, nothing to do with Debian) so my limited knowledge is rusty to boot...

      did you do-apt get install Jcommon and Jfreechart?

      can't you just click the marsproject.jar in your GUI? (Gnome or KDE or...) to start it? If not, what happens if you do?

      if not, you'll have to use the command line. use the cd (means: current directory) command to go to the folder where the project is in, then use cd again to got to the scripts folder (your promt should end in ... MarsProject_2.76/scripts/blablablah... and then type: MarsProject.sh

      hope I'm not sounding too paternalizing, but I don't know what your current newbieness factor is, grin, so better to give too much explanation than too little...

       
    • Scott Davis

      Scott Davis - 2004-08-10

      vector,

      I'm also a bit new to Linux so I hope I can help.  Another user previously requested an apt-get version but admit I haven't had a chance to research that yet.  I'm not sure if apt-get handles Java programs well or not.

      The jcommon and jfreechart libraries do not need to be downloaded and installed separately.  They already come in the download tarball.  I put the reference to them on the downloads page to give credit to the JFreeChart project since we use their libraries.

      Anyway, you'll first need to make sure you have a Java virtual maching (JVM) installed on your computer of at least 1.4.1 or newer.

      You can type "java -version" at the command line and it should return the version if it is installed.

      If not, you can download the latest JVM for Linux from Sun's site at http://java.sun.com/j2se/1.4/index.jsp and just follow installing instructions from there.

      Once java is installed, create a directory for the Mars Simulation Project and copy the tarball there.

      Extract the tarball ex. "tar xvzf MarsProject_2.76.tar.gz" (I think that's correct)

      Now go to the scripts directory and type "./MarsProject.sh".  That should run the simulation. 

      If you have problems with the script, you can run the program from its main directory by typing "java -jar MarsProject.jar".

      The project has an executable jar file, "MarsProject.jar", in its main directory that can be clicked on to start the sim on graphical systems that support that, but I'm not sure if its easy to do with Gnome or KDE.  Please let us know if you find that works.

      Hope that helps.  Let me know if you still can't get it working.  Please be specific if you get error messages.

      Thanks,

      Scott Davis
      Mars Simulation Project
      http://mars-sim.sourceforge.net
      scud1@users.sourceforge.net

       
    • vector

      vector - 2004-08-11

      """If not, you can download the latest JVM for Linux from Sun's site at http://java.sun.com/j2se/1.4/index.jsp and just follow installing instructions from thre. """ Firstly I cant see that site at all in my linux box. Had to goto winxp.
      ok i tried java -version at the linux prompt and its obvioulsy not installed.
      the apt-cache search java found
      a java-machine-dummy and java-common but not much else that rang any bells. So i went to the site above.
      couldnt find JVM on that page wound in and out of the site a few times and ended up installing  the Runtime Environment ==self-extracting file  (j2re-1_4_2_05-linux-i586.bin, 13.72 MB)== on the download page.
      Followed its insturctions
      and once extracted tried "java -version" still no good. must be the wrong file or its not "enabled"? Did find some references to "enabling" but it looked like it was for browsers so I decided it was all over my head again and popped in here to post.
      I also found
      http://java.com/en/download/manual.jsp
      toward the bottom is linux I followed the instructions. still no go

       
    • vector

      vector - 2004-08-11
       
    • vector

      vector - 2004-08-11

      stop press
      2 things
      1 my browser on the linux box is not giving me any outside links confusing the above trials. trying to fix that now.
      2 i found apt-get install sablevm which is apparantly a jvm for debian.
      ill get back to you

       
    • vector

      vector - 2004-08-11

      tried on xp. extracted and ran . worked outa the box.. now waht do i actually do with it :)

      also apt-get install sablevm
      results
      mark@saturnlx:~/games/marssim/scripts$ java -version
      SableVM version 1.1.6
      - compile date and time: 2004-07-23 19:07:10 UTC
      - gcc version: 3.3.4 (Debian 1:3.3.4-3)
      - 'real life brokenness' features enabled
      - signal based exception detection
      - copying garbage collection
      - bidirectional object layout
      - inline-threaded interpreter
      mark@saturnlx:~/games/marssim/scripts$ ./MarsProject.sh
      Warning: -ms32m option not RECOGNIZED by java-sablevm wrapper.
      A not recognized option will be just passed to SableVM.
      Note that we don't know if we should expect an argument here!
      It almost _surely_ will result in an errors when the param is followed
      by an argument. Refer to 'man java-sablevm' and 'man sablevm'.
      Warning: -mx128m option not RECOGNIZED by java-sablevm wrapper.
      A not recognized option will be just passed to SableVM.
      Note that we don't know if we should expect an argument here!
      It almost _surely_ will result in an errors when the param is followed
      by an argument. Refer to 'man java-sablevm' and 'man sablevm'.
      java.lang.ClassNotFoundException: org.mars_sim.msp.ui.standard.SplashWindow
         at gnu.java.lang.SystemClassLoader.findClass (SystemClassLoader.java:83)
         at java.lang.ClassLoader.loadClass (ClassLoader.java:332)
         at java.lang.ClassLoader.loadClass (ClassLoader.java:276)
         at java.lang.VirtualMachine.createClass (VirtualMachine.java:100)
         at org.mars_sim.msp.MarsProject.MarsProject (Unknown Source)
         at org.mars_sim.msp.MarsProject.main (Unknown Source)
         at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
         at java.lang.VirtualMachine.main (VirtualMachine.java:92)
      mark@saturnlx:~/games/marssim/scripts$

      i guess sablevm just aint good enough

       
    • Scott Davis

      Scott Davis - 2004-08-13

      I'm sorry your having troubles running the sim.  I don't know much about the sablevm, but perhaps it just doesn't handle the same command line parameters as Sun's JVM.

      Did you try running the sim from the main project directory by typing "java -jar MarsProject.jar" ?  It might be worth a try.

      Looking at Sun's website, I found the following instructions for installing the Java Runtime Environment for Linux:
      http://java.sun.com/j2se/1.4.2/jre/install-linux.html

      It looks like Sun's download site is temporarily down.  I'm not sure if that's what you had run into before.

      Scott Davis

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.