1752578 Members
4823 Online
108788 Solutions
New Discussion юеВ

Java instalation

 
Yyrkoon
Advisor

Java instalation

Hi all,
I have a problem with my Java installation. I did not do it so I don't know the way it was done. The problem is that it seems to have the output lost on some logical or something similar. What I mean is, on a normal system...

CVCDM1$ java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
[...blablabla...]

On my system...

VACDM1$ java
VACDM1$

So, when I run programs if they finish with error I cannot see them on logs, so I am not able to know why my program crash.

Do you know how to fix that?

Thanks in advance,

Salva.
7 REPLIES 7
Joseph Huber_1
Honored Contributor

Re: Java instalation

A few things to check:
Is Your sys$output defined to point to something else than Your terminal (-window) ?
$ SHOW LOGICAL SYS$OUTPUT

How is the java command defined on the system ?
$ SHOW SYMBOL java
Is it different between the two systems ?
http://www.mpp.mpg.de/~huber
Yyrkoon
Advisor

Re: Java instalation

It's the same (taking into account they are on different machines with different disks and so on)...

VACDM1$ SHOW SYMBOL java
JAVA == "$ $3$LDA16:[000000.JRE_RUNTIME_BASE.BIN]JAVA$JAVA.EXE "
(not working one)

CVCDM1$ SHOW SYMBOL java
JAVA == "$ SYS$COMMON:[JAVA$150.bin]java$java " (working one)

Sys$output is also right, I can see logs perfectly but java part...

$ write sys$output "dCDM Server time - ", F$TIME(), " on node - ", NODE
dCDM Server time - 16-MAY-2011 15:04:55.84 on node - VACDM
$ java -jar PVSLink_TCPIP.jar -
-m2s2m -
-port 3030 -
-emailscript pvs_mail.com -
-mbx2sck mbxsckpvs -
-sck2mbx pvssckmbx
$exit

The program (when it works) stays on a infinite loop, so it's crashing, but I have no message telling me why does it crash.

Joseph Huber_1
Honored Contributor

Re: Java instalation

Maybe SHOW SYMBOl $STATUS tells something after java silently exiting ?
http://www.mpp.mpg.de/~huber
H.Becker
Honored Contributor

Re: Java instalation

I would try
$ java -version
and
$ java -verbose

I would also check and compare the directory tree [JRE_RUNTIME_BASE...] with [JAVA$150...].

JRE_RUNTIME_BASE is not a name the VMS Java group uses by default as the top directory.

Also, usually in sys$startup, there is a java$nnn_setup.com, with nnn being the Java version, like 150. I would run it. It usually points to the disk where Java is installed and runs a command procedure from there. If the pointer is wrong, I would search for the command procedure in any Java directory and run that.

And then I would check for all the JAVA$* logical names.

PS: On the version I tried, Java sets no meaningful VMS error code.
Yyrkoon
Advisor

Re: Java instalation

Thank you both for your attempts. My problem is already solved, it is quite curious, the problem was quotas PGFLQUOTA was not enought but no error arise when I try to do just "java" command. It did when I tried to run a program, but no on other cases.

Thanks again.
H.Becker
Honored Contributor

Re: Java instalation

You may want to run [JAVA$150.COM]JAVA$CHECK_ENVIRONMENT.COM.
Yyrkoon
Advisor

Re: Java instalation

As I told, problem is solved, I close this thread.

Thanks all.