I decided to give SuperVersion 2.0b8 a try under Linux
(Ubuntu 5.10), but failed to run it. When I run;
sh superversion.sh
I get:
Exception in thread "main"
java.lang.NoClassDefFoundError:
drjava/superversion/gui/Main
Now, I read in one of the threads that this could be
occurring because sh is not defaulting to bash.
Probably the case in Ubuntu?
So I tried ./superversion.sh and I get:
bash: ./superversion.sh: /bin/sh^M: bad interpreter: No
such file or directory
Well, I have seen this ^M thing before and it usually
occurs due to the cr/lf issue transferring text files
between *nix & windows. So, I deleted all the newlines
in superversion.sh and entered them again manually
(from within gedit). It worked!!!
OK, so I think you need to revisit your .sh files and
make sure they work under all linuxes. I'm surprised
noone else has come across this before.
Logged In: NO
Thanks for this info, I ad trouble getting 8.0beta8b starting from Debian bash shell. After fiddling with the superversion.sh file I finally got it to start. Interesting was that java vm gave various error messages, like at first if I used "sh superversion.sh" then I got error "Exception in thread "main" java.lang.NoClassDefFoundError: drjava/superversion/gui/Main". Then I tried the style "./superversion.sh" and with it got the app running after saving the newlines again in an editor. But then I got error:
"<html><body bgcolor=#FFFFFF>java.lang.NoClassDefFoundError: com/l2fprod/common/swing/JButtonBar<br> at drjava.superversion.gui.Main.showWelcomeDialog(Main.java:591)<br> at drjava.superversion.gui.Main.start(Main.java:517)<br> at drjava.superversion.gui.Main$21.run(Main.java:874)<br> at java.awt.event.InvocationEvent.dispatch(Unknown Source)<br> at java.awt.EventQueue.dispatchEvent(Unknown Source)<br> at drjava.vats.SwingVat$1.dispatchEvent(Unknown Source)<br> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)<br> at java.awt.EventDispatchThread.run(Unknown Source)<br></body></html>
"
(sorry for the long error message)
I was at this point sure that the app won't run on my system and almost gave up. But then I came with a final attempt at the superversion.sh and added a newline to the start of the file, saved and started again and wow now the app starts in both ways!
Thanks for the great superversion program, hopefully you can keep modifying it. BTW I saw someone else asking if you still improve the single-user mode superversion 1.2. I am also interested in such single-user mode app with the latest improvements minus the server-related stuff (simple is best).
Thanks again.