Sunstudio11, Internal Error when I execute a fortran program
Hello,
I installed sunstudio11 on a amd64 machine with ubuntu 6.06 LTS dapper drake.
I get an "Internal Error" message when I execute a fortran program (myprog < input.file).
Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
at org.openide.execution.ProcessExecutor$PERunnable.run(ProcessExecutor.java:368)
[catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
The program is not running and it seems he is waiting on the input.file, although "< input.file" was set as an argument.
Thanks in advance for help,
Thomas
[645 byte] By [
eulera] at [2007-11-26 15:38:53]

# 1
This is Sun Studio 11 right? Not a preview release of SS12?
So you must be using gfortran to build your program?
I assume the program runs from the command line okay.
If you're an IDE user, then I recommend that you check out the
new IDE in Sun Studio 12 Express 3 release. The new one is pre-release
and it has some rough edges, but it's the direction we're going
in the future, and we'd love to get feedback on it.
--chris
# 2
I think Sun Studio IDE does not support the redirection of stdin, stdout,
stderr. I don't see NPE when I run Sun Studio 12 Express release, but
the redirection does not work. I created a sample project IO, and set
the following "Run" arguments: < /tmp/f0.txt > /tmp/f1.txt
But the application did not read from /tmp/f0.txt and did not write to
/tmp/f1.txt. It reads from terminal window, and prints to terminal window.
# 4
Hi Chris,
yes it's Sun Studio 11 and the program runs from the command line (bash). I'am using the pgi compiler. But I am wondering because on a 32bit intel machine it works with the ifc compiler.
Actually Sun Studio was installed on the 32bit intel NFS machine and not on the amd64 opteron. At first I thought there is a problem with the java jdk when I start sunstudio from the amd64, therefore I have installed the 32bit version of java jdk and set the sunstudio --jdkhome, unfortunately without success.
I will check on monday the g77 compiler (I am not able compile my program with gfortran) and the new IDE. Does the new IDE with the Pgi-compiler work?
Thanks,
Thomas