Re: calling java class from web page

Tech-Archive recommends: Fix windows errors by optimizing your registry



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





.



Relevant Pages

  • Re: Application starts too soon
    ... expecting a network connection to exist. ... > The application runs froma a batch file. ... Finally the command prompt arrives, ... > think the app tries to run, encounters an error, and exits. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Application starts too soon
    ... Windows XPE site and looked thru the two XPE books and found nothing on this ... >> The application runs froma a batch file. ... >> The batch file has my exe followed by a Shutdown command ... >> think the app tries to run, encounters an error, and exits. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Problem when executing application from batch file
    ... >buffer and execute one by one ... >that the comands (multi-commands from batch file) are sent. ... >multi-commands, then the first command will invoke the application and the ... If you write a tiny stripped down loader for your App and use: ...
    (microsoft.public.vb.general.discussion)
  • Re: Problem when executing application from batch file
    ... To force the batch file to not wait for your app and return immediately, ... > is a single command from command prompt or it is part of batch file ... >> It appears that outside a batch file, i.e., in Command Prompt, the app is ...
    (microsoft.public.vb.general.discussion)
  • Re: calling java class from web page
    ... When I run either a batch file or .net console app from the command line ... java application launches correctly and runs the Pro/E program as desired. ... I have a web interface that needs to launch a java application. ...
    (microsoft.public.dotnet.framework.aspnet)