Hi there...
I have the similar problem...
there is one patran software. I fire this application using java application. my java app fires the patran software and opens and reads in the input file and gives an error as "wglCreateContext " so somebody helped me saying that i have to put patran path before java path, in the PATH environment variable.
so... thepatran application is working fine after doing that in DOS cmd window.
but now when i fire up the same patran application from my java program, it is giving me the same error.
to exceute the software, in java i use this code line
Process p = Runtime.getRuntime().exec(patcmd,envVars,new File(TMPDIR))
where in envvars i have 5 variables, of which fourth variable is java.library.path.
which shows
java.library.path is:C:\j2sdk1.4.0\bin;.;C:\WINNT\System32;C:\WINNT;C:\msc\patran2001r3\bin;C:\msc\patran2001r3\mscfatigue_files\bin;C:\Program Files\Adobe\FrameViewer5.5\;;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\j2sdk1.4.0\bin;;C:\Program files\CA\TNGSD\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND; C:\jdk1.3.1_02\bin; C:\Program Files\JavaSoft\JRE\1.3.1_02\bin;
can anyone please help , how i can solve this problem...
Regards,
I have the similar problem...
there is one patran software. I fire this application using java application. my java app fires the patran software and opens and reads in the input file and gives an error as "wglCreateContext " so somebody helped me saying that i have to put patran path before java path, in the PATH environment variable.
so... thepatran application is working fine after doing that in DOS cmd window.
but now when i fire up the same patran application from my java program, it is giving me the same error.
to exceute the software, in java i use this code line
Process p = Runtime.getRuntime().exec(patcmd,envVars,new File(TMPDIR))
where in envvars i have 5 variables, of which fourth variable is java.library.path.
which shows
java.library.path is:C:\j2sdk1.4.0\bin;.;C:\WINNT\System32;C:\WINNT;C:\msc\patran2001r3\bin;C:\msc\patran2001r3\mscfatigue_files\bin;C:\Program Files\Adobe\FrameViewer5.5\;;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\j2sdk1.4.0\bin;;C:\Program files\CA\TNGSD\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND; C:\jdk1.3.1_02\bin; C:\Program Files\JavaSoft\JRE\1.3.1_02\bin;
can anyone please help , how i can solve this problem...
Regards,