ThinkingRock Forum

To go back to http://www.trgtd.com.au
It is currently Thu May 23, 2013 4:27 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 
Author Message
PostPosted: Wed Oct 11, 2006 12:37 am 
Offline

Joined: Wed Oct 11, 2006 12:35 am
Posts: 4
Moved it out of the nest.....got new Java....enabled the new Java....got this on my console:

Exception in thread "main" java.lang.UnsupportedClassVersionError: tr/AppManagerMacOS (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 2:30 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
It looks like your java version is not 1.5 (required for TR).

You can check using a terminal (java -version) or if you are on windows look it the Add / Remove programs in the control panel.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject: Am I missing something?
PostPosted: Wed Oct 11, 2006 12:56 pm 
Offline

Joined: Wed Oct 11, 2006 12:35 am
Posts: 4
Thanks for the reply....

Ok......That version of Java is not coming up in my terminal, but I just installed the Apple update 5.0....and clicked it in my Java perfs....

What is the trick to activate 1.5?[/img]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 4:56 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 2:36 am
Posts: 50
Are you running Mac OSX 10.4? If so, then you should have the latest Java VM.

As noted above, to check your version, do this:

Run the Terminal utility (it's in your Applications folder, in the Utility sub-folder).

When it opens, type the following:

java -version

and press Return. Note that there is a SPACE between the word "java" and the "-version" part... if you don't include the space, this won't work.

That will tell you the version you have.


Top
 Profile  
 
 Post subject: Ya butt
PostPosted: Wed Oct 11, 2006 6:09 pm 
Offline

Joined: Wed Oct 11, 2006 12:35 am
Posts: 4
This is what the consol said:

Last login: Wed Oct 11 08:39:48 on ttyp1
Welcome to Darwin!
your-privacys-power-mac-g4-agp-graphics:~ readthis$ java -version
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
your-privacys-power-mac-g4-agp-graphics:~ readthis$

Which indicates I am using the wrong version...I D/led the 5.0 Java updater from Apple, installed it, and went to the perfs file to select the 5.0 etc.....it didn't change the version? What do I do to get the 1.5 to load?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 12:05 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
There is probably an official way of changing the current java version used which is probably in the instructions for installing.

However I did it this way ...

Use the Terminal.app (in Applications/Utilities)

...$ cd /System/Library/Frameworks/JavaVM.framework/Versions
...$ ls -l

you should see a list of java version directories and a link to the current one similar to this ...

Code:
imac:/System/Library/Frameworks/JavaVM.framework/Versions jmoore$ ls -al
total 32
drwxr-xr-x   10 root  wheel  340 Oct  5 17:51 .
drwxr-xr-x   10 root  wheel  340 May  3 09:28 ..
lrwxr-xr-x    1 root  wheel    5 May  3 09:28 1.3 -> 1.3.1
drwxr-xr-x    8 root  wheel  272 Feb  2  2006 1.3.1
lrwxr-xr-x    1 root  wheel    5 Feb  2  2006 1.4 -> 1.4.2
drwxr-xr-x    8 root  wheel  272 Feb  2  2006 1.4.2
drwxr-xr-x    9 root  wheel  306 Apr 20 21:41 1.5.0
drwxr-xr-x    5 root  wheel  170 Jul 11 09:36 A
lrwxr-xr-x    1 root  wheel    1 May  3 09:28 Current -> A
lrwxr-xr-x    1 root  wheel    5 Oct  5 17:51 CurrentJDK -> 1.4.2


So what you need to do is change the CurrentJDK link to 1.4.2 to link to 1.5.0
However you probably need higher authority first so

...$ sudo sh
Password: enter your root / administration password

then
...# rm CurrentJDK
...# ln -s 1.5.0 CurrentJDK

all done
...# java -version

should show 1.5.0 something

If anyone knows an easier way please post.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject: Jeremy You Da' Man.....
PostPosted: Thu Oct 12, 2006 2:33 am 
Offline

Joined: Wed Oct 11, 2006 12:35 am
Posts: 4
:D Got it running!!!!!!

I just can't describe the feeling of seeing that Icon just simply launch!

Now to tackle the SW and the GTD program. I'm going to get the thing working cross platform next...on my XP machine.....then onto Linux and then an TRS-80......

SOOOOOOOOO.....THE NEXT BIG QUESTION IS........

WHY DID MY LITTLE SNITCH LIGHT UP WITH A CALL TO YOUR SERVERS WHEN I BOOTED????? WHAT ARE YOU GETTING FROM ME THAT I DON'T KNOW ABOUT??????


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 4:33 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
TR checks for the current version number on startup (which is in the version.php file on our web site). You can disable this in the preferences if you want to.

_________________
ThinkingRock Developer


Top
 Profile  
 
PostPosted: Fri Oct 20, 2006 6:49 am 
Offline

Joined: Fri Oct 20, 2006 6:43 am
Posts: 1
Location: Takapuna
Thanks Jeremy for the step by step Terminal session. I ended up copy and pasting line by line and hey presto - success.
"If you play with software long enough, it works.
If you play with hardware long enough, it breaks"


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 5:28 am 
Offline

Joined: Sat Oct 21, 2006 4:50 am
Posts: 4
Hi Jeremy
I have also downloaded the latest Java but having no luck on a Mac.
I have tried entering the codes that you suggest for getting it to use the 1.5 version but not getting anywhere.
I reads
...$ command not found

Hope you can enlighten me.
thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 8:32 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
I guess that you have installed the Java version 1.5

If you use the Terminal.app and follow the instructions I gave it should work.
Hint: don't type the ...$ or ...# (these are just showing that there is a command line prompt that should end in a $ or #)

If you still have problems please be specific about which command is not found and what you did exactly.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 10:09 am 
Offline

Joined: Sat Oct 21, 2006 4:50 am
Posts: 4
Sorry but can you explain the root user bit. Do I have to set up a root user? I am not familiar with doing the coding.
thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 8:50 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Quote:
Under Mac OS X, the root or superuser account is not enabled following installation. While it is possible to enable the root account, it is safer and potentially easier to use the sudo command to gain root access to the system.

From a terminal window, type

sudo -s

This will prompt you for a password which is the user's password, not the root password (which will not be set). ...
The -s option launches a shell as the target user (root). When successfully executed, the shell's prompt should end with root#.


So you can use: sudo -s (or sudo sh) to gain superuser privileges using your normal user password. This is the case except when the root account has been enabled - if it has then you need the actual root account password.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 22, 2006 10:45 am 
Offline

Joined: Sat Oct 21, 2006 4:50 am
Posts: 4
HI Jeremy

Good news. System update came up with the latest Java 5 update and once I did this Thinking Rock has opened and stayed open! So I have not had to do your work around.

thank you for your prompt replies.
Will now experiment with the programme.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group