Re: calling java class from web page
- From: "Patrice" <http://www.chez.com/scribe/>
- Date: Mon, 9 Jul 2007 18:56:44 +0200
The error message really make me think that some class is not found. Double
check perhaps that you don't depend on a class whose definition is not in
the classpath. (are you using the same value than the one found in the
environment variable, use SET to majke sure the environment variable hold
the same value than the one you tried).
Tools from sysinternals (redirects to MS) such as the "filemon" tool could
also help as you could see which classes are loaded when using the command
line and whihc file it doesn't find when running from an ASP.NET page (or if
perhaps the directory in whihc are Java classes doesn't have the appropriate
ACL).
---
Patrice
"VB Jonnie" <VBJonnie@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de
news: 1EFA4A4A-E7DC-4BD3-B9BD-C418EE647DFF@xxxxxxxxxxxxxxxx
Patrice,
I have tried adding the -classpath to the command line call but it did not
help, unfortunately.
When I run either a batch file or .net console app from the command line
the
java application launches correctly and runs the Pro/E program as desired.
It
is only when I attempt to call either of these apps (batch file or console
app) from my ASP.Net page that the java application does not launch.
Thanks for the input, I am still looking into permissions and perhaps IIS
restrictions to accessing external files. My hope is that someone reading
this discussion will have come accross this type of issue before.
I have sucessfully used Process.Start through an ASP.Net web page to start
up an external application.
--
Coding in Sunny Central Florida
"Patrice" wrote:
Have you check that the CLASSPATH environment variable is available ? You
could likely also add the -classpath option in the command line.
You could also try a Java group as this is IMO rleated to a Java
configuration (the classpath environment variable) rather than a problem
with .NET.
---
Patrice
"VB Jonnie" <VBJonnie@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message
de
news: 418CF69C-CD79-40EF-9532-82F830D0EAC5@xxxxxxxxxxxxxxxx
Thanks for the information, Sam. I will look into IKVM, at first glance
it
looks promising, but probably for future projects. This particular
project
involves using java code to interact with Pro/E (3D CAD application),
and
due
to project time constraints re-writing the entire app would be too
costly.
--
Coding in Sunny Central Florida
"Samuel R. Neff" wrote:
I would suggest converting the Java app to .NET.
http://www.ikvm.net/
HTH,
Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On Mon, 9 Jul 2007 06:16:02 -0700, VB Jonnie
<VBJonnie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
ASP.NET 2.0 / Visual Studio 2005 / VB.Net 2.0
I have a web interface that needs to launch a java application.
What a long strange trip it has been...
I am using Process.Start process start info parameters, first to
launch
the
java app by itself with the call:
"C:\Program Files\Java\jdk1.5.0_12\bin\java.exe" javaAppName Arg1
Arg2
.
- References:
- calling java class from web page
- From: VB Jonnie
- Re: calling java class from web page
- From: Samuel R . Neff
- Re: calling java class from web page
- From: Patrice
- Re: calling java class from web page
- From: VB Jonnie
- calling java class from web page
- Prev by Date: Procedure searching for inappropriate language
- Next by Date: Re: reference profile in class
- Previous by thread: Re: calling java class from web page
- Next by thread: Re: calling java class from web page
- Index(es):
Relevant Pages
|