Re: calling java class from web page

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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







.



Relevant Pages

  • Re: X11 and Rosetta
    ... > But if [Rosetta requires finder launch] is so, someone please let me know soon. ... Rosetta works far below the level of the finder. ... A non-working app fails for one reason, ... Java, for example, always runs natively. ...
    (comp.sys.mac.apps)
  • Re: calling java class from web page
    ... 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. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Native gem roundup!
    ... (I'm not too familiar with Java GUI frameworks)... ... Monkeybars app - http://monkeybars.rubyforge.org/) by default on Macs ... Java) or JotBot (http://getjotbot.com/ - JRuby with Monkeybars) ... I brought up RubyCocoa not because I thought it would be ...
    (comp.lang.ruby)
  • Re: POSSIBLE SECURITY PROBLEM in Java 5!
    ... still worked -- but the network activity dropped to zero and it ... Naturally, suspecting a bug, I exited and went to rerun the app, this ... Task Manager showed two Java tasks, ... and killing it should have released the sockets. ...
    (comp.lang.java.programmer)
  • Re: Java on the BSD Desktop?
    ... interactivity we must also put into disscusion Adobe Flash and Adobe Flex ... To my oppinion Java is more suitable for back end solutions. ... I would like to see a native FreeBSD Flash player. ... > First off, in my company we had a Java app (simple app, working with ...
    (freebsd-questions)