SBC3 - JamVM Issue

Supporting Java SE version 7 and up
morgan
Phidgetly
Posts: 44
Joined: Sun Nov 28, 2010 4:34 pm
Contact:

SBC3 - JamVM Issue

Postby morgan » Mon Nov 02, 2015 1:35 pm

Hey there,

I had my SBC3 up and running with my small Java Application. My application was using an outside Process to run another java program, using 'jamvm -jar /location/myfile.jar'. Recently i wanted to make sure i remembered how to set up the SBC. so i cleared it using the reset button for 10 sec.
It booted back up after a minute or two and i set the admin password. I installed java support, I turned SSH back on, and i added my Java project.

Now i am getting an error for jamvm. it's no longer installed. Even when i ssh in, i can run a JAVA command, but jamvm is missing.

The reason i need jamvm, is when i run an outside process the process is called:
jamvm 'myfile.jar'
so i can tell it's running. anything running under 'java' is in some hidden process, and you can't see individual applications, by doing a 'pe -e' command.

So to recap, even when i SSH in, jamvm shows Command Not Found.

Any help is greatly appreciated!

User avatar
Patrick
Lead Developer
Posts: 3099
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: SBC3 - JamVM Issue

Postby Patrick » Mon Nov 02, 2015 1:44 pm

jamvm isn't installed by default on the SBC3 - you would need to install it yourself using apt-get. The JVM installed by the install java button in the web interface is OpenJDK.

-Patrick

morgan
Phidgetly
Posts: 44
Joined: Sun Nov 28, 2010 4:34 pm
Contact:

Re: SBC3 - JamVM Issue

Postby morgan » Mon Nov 02, 2015 2:52 pm

It's very weird that i have jamvm working at one point in time.... hahaha no idea how i did that.

With OpenJDK, do you know is 'ps -e' will list the name of the java process?

how can i call another java process to run?
'java -jar MyFile.jar'
is that correct?

when i run a 'ps -e', i can't see that MyFile.jar is running, all i can see is a java process is running... any help on that item?

User avatar
Patrick
Lead Developer
Posts: 3099
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: SBC3 - JamVM Issue

Postby Patrick » Mon Nov 02, 2015 4:06 pm

You could probably install jamvm from the package repository. We did use jamvm on the 1st SBC (1070), but I'm not sure if it's even being developed anymore.

-Patrick

morgan
Phidgetly
Posts: 44
Joined: Sun Nov 28, 2010 4:34 pm
Contact:

Re: SBC3 - JamVM Issue

Postby morgan » Tue Nov 03, 2015 2:22 pm

Okay i made good progress...

The standard java virtual machine works just fine.
I needed to learn a bit more of linux to do what i was trying to do.

when i run the command:
java -jar MyFile.jar

the application runs, and everything is fine.

I used to use: 'ps -e' to list processes and jamvm told me the name.

Now i need to use:

ps -ef
and this command will print the full name of the processes, so now i know which one to terminate.

Perfect. thanks for your help on this.


Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest