Thread View: borland.public.janeva
4 messages
4 total messages
Started by chris bono
Tue, 01 Feb 2005 19:23
Visual Studio.NET integration
Author: chris bono
Date: Tue, 01 Feb 2005 19:23
Date: Tue, 01 Feb 2005 19:23
13 lines
1604 bytes
1604 bytes
I have been unable to run the java2cs compiler from w/in VS.NET. I have had to use the command line version because I have to add classes to the classpath by setting the dreaded CLASSPATH variable. From w/in VS.NET I can never "build and browse" the jar file and ear files aren't even recognized as a candidate for java2cs. 1) Why doesn't java2cs allow us to specify a command line classpath similar to the way the jvm does (-cp or -classpath)? Or does it allow that but I don't know what I'm doing? :) 2) Why doesn't VS.NET recognize the ear file? Thanks
Re: Visual Studio.NET integration
Author: Henry Hwang
Date: Wed, 02 Feb 2005 17:23
Date: Wed, 02 Feb 2005 17:23
33 lines
2381 bytes
2381 bytes
Chris: Answer to your questions are in the Chapter 3 of the Developer's guide: http://info.borland.com/techpubs/janeva/6_5/english/pdf/JanevaDevGuide.pdf Basically this is the steps to be taken: 1. install VS.Net (2002 or 2003) with all the prerequisites 2. install Janeva, indicate that you want to install VS.Net plugin during the installation 3. Open VS.Net and configure Borland Janeva properties in VS.Net according to Chapt 3. Here you can associate .ear file with java2cs tool and specify command line properties for java2cs or idl2cs. Henry "chris bono" <chris.bono@gmail.com> wrote in message news:41ffd721$1@newsgroups.borland.com... >I have been unable to run the java2cs compiler from w/in VS.NET. I have had >to use the command line version because I have to add classes to the >classpath by setting the dreaded CLASSPATH variable. From w/in VS.NET I can >never "build and browse" the jar file and ear files aren't even recognized >as a candidate for java2cs. > > 1) Why doesn't java2cs allow us to specify a command line classpath > similar to the way the jvm does (-cp or -classpath)? Or does it allow that > but I don't know what I'm doing? :) > > 2) Why doesn't VS.NET recognize the ear file? > > Thanks >
Re: Visual Studio.NET integration
Author: chris bono
Date: Wed, 02 Feb 2005 19:29
Date: Wed, 02 Feb 2005 19:29
45 lines
2833 bytes
2833 bytes
Thanks Henry, I have already associated the .ear extension and it still doesn't recognize it. And although this allows you to specify which JRE it doesn't let you specify the classpath. Chris "Henry Hwang" <hhwang@borland.com> wrote in message news:42010c28$1@newsgroups.borland.com... > Chris: > > Answer to your questions are in the Chapter 3 of the Developer's guide: > > http://info.borland.com/techpubs/janeva/6_5/english/pdf/JanevaDevGuide.pdf > > Basically this is the steps to be taken: > 1. install VS.Net (2002 or 2003) with all the prerequisites > 2. install Janeva, indicate that you want to install VS.Net plugin during > the installation > 3. Open VS.Net and configure Borland Janeva properties in VS.Net according > to Chapt 3. Here you can associate .ear file with java2cs tool and > specify command line properties for java2cs or idl2cs. > > Henry > > > "chris bono" <chris.bono@gmail.com> wrote in message > news:41ffd721$1@newsgroups.borland.com... >>I have been unable to run the java2cs compiler from w/in VS.NET. I have >>had to use the command line version because I have to add classes to the >>classpath by setting the dreaded CLASSPATH variable. From w/in VS.NET I >>can never "build and browse" the jar file and ear files aren't even >>recognized as a candidate for java2cs. >> >> 1) Why doesn't java2cs allow us to specify a command line classpath >> similar to the way the jvm does (-cp or -classpath)? Or does it allow >> that but I don't know what I'm doing? :) >> >> 2) Why doesn't VS.NET recognize the ear file? >> >> Thanks >> > >
Re: Visual Studio.NET integration
Author: Henry Hwang
Date: Thu, 03 Feb 2005 23:34
Date: Thu, 03 Feb 2005 23:34
107 lines
4597 bytes
4597 bytes
Chris: I have tested this by generating an ear file, and adding it as an existing item to a VS.Net (2003) project. Once this ear file is added, the Borland.Janeva.Runtime external reference is automatically added. Also, in the Properties window of VS.Net, if I have the ear file highlighted in the Solution Explorer, there is an area where I could enter compiler arguments for java2cs in the Properties window. However, I looked at the java2cs compiler flag, there is no option that allows the addition of classpath. I wonder what is your use case in adding classpath to java2cs compilation. Is there any other jars that need to be referenced for the ear file to work? In any case, when you add the ear file as an existing item, VS.Net does not show the ear file by default in the dialog box. You will need to set to open 'All Files' (not just VS-recognized ones) to see the ear file. After adding the ear file, I click 'Build Solution', and it executed this command. And the output is as below: ---- Borland Janeva (Java2cs) Generator ---- ---- Generating hello_clean.cs from hello_clean.ear E:\WorkApps\Borland\Janeva65\bin\java2cs.exe -o "C:\Documents and Settings\hhwang\My Documents\Visual Studio Projects\Test_ear_files\Test_ear_files\hello_clean.cs" -javahome "C:\Program Files\Java\j2re1.4.2_06" "C:\Documents and Settings\hhwang\My Documents\Visual Studio Projects\Test_ear_files\Test_ear_files\hello_clean.ear" ------ Build started: Project: Test_ear_files, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... Build complete -- 0 errors, 0 warnings Building satellite assemblies... ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped Is this what you are looking for? Henry "chris bono" <chris.bono@gmail.com> wrote in message news:420129fe@newsgroups.borland.com... > Thanks Henry, > > I have already associated the .ear extension and it still doesn't > recognize it. And although this allows you to specify which JRE it doesn't > let you specify the classpath. > > Chris > > "Henry Hwang" <hhwang@borland.com> wrote in message > news:42010c28$1@newsgroups.borland.com... >> Chris: >> >> Answer to your questions are in the Chapter 3 of the Developer's guide: >> >> http://info.borland.com/techpubs/janeva/6_5/english/pdf/JanevaDevGuide.pdf >> >> Basically this is the steps to be taken: >> 1. install VS.Net (2002 or 2003) with all the prerequisites >> 2. install Janeva, indicate that you want to install VS.Net plugin during >> the installation >> 3. Open VS.Net and configure Borland Janeva properties in VS.Net >> according to Chapt 3. Here you can associate .ear file with java2cs tool >> and specify command line properties for java2cs or idl2cs. >> >> Henry >> >> >> "chris bono" <chris.bono@gmail.com> wrote in message >> news:41ffd721$1@newsgroups.borland.com... >>>I have been unable to run the java2cs compiler from w/in VS.NET. I have >>>had to use the command line version because I have to add classes to the >>>classpath by setting the dreaded CLASSPATH variable. From w/in VS.NET I >>>can never "build and browse" the jar file and ear files aren't even >>>recognized as a candidate for java2cs. >>> >>> 1) Why doesn't java2cs allow us to specify a command line classpath >>> similar to the way the jvm does (-cp or -classpath)? Or does it allow >>> that but I don't know what I'm doing? :) >>> >>> 2) Why doesn't VS.NET recognize the ear file? >>> >>> Thanks >>> >> >> > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads