HighTechTalks DotNet Forums  

How do I import a user defined class into VisualStudio .net J#

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss How do I import a user defined class into VisualStudio .net J# in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Tony Johansson
 
Posts: n/a

Default How do I import a user defined class into VisualStudio .net J# - 06-09-2005 , 02:20 PM






Hello Experts!

I'm using Visual Studio .NET with J#.
For example if you compile a java file by using the javac in the command
window(cmd) you get a class file.
One example if you have a java file called Test.java and you compile this
file
from the command window you get a Test.class file.

How to I import this class file Test.class so I can call methods that exist
in that file.
I have tried everything to set the classpath and I have put this classfile
Test.class
at the project folder and at the folder where the exe file is located.
Nothing works.

I have tried from Visual Studio In the "Project" menu "Add existing item..."
Locate the
files and "OK". But this didn't help.

Does anybody know if it's possible to use a class file when you use Visual
Studio .net. How do I do?


//Tony




Reply With Quote
  #2  
Old   
Tony Johansson
 
Posts: n/a

Default Re: How do I import a user defined class into VisualStudio .net J# - 06-09-2005 , 03:24 PM







"Tony Johansson" <johansson.andersson (AT) telia (DOT) com> skrev i meddelandet
news:LL%pe.26927$d5.178347 (AT) newsb (DOT) telia.net...
Quote:
Hello Experts!

I'm using Visual Studio .NET with J#.
For example if you compile a java file by using the javac in the command
window(cmd) you get a class file.
One example if you have a java file called Test.java and you compile this
file
from the command window you get a Test.class file.

How to I import this class file Test.class so I can call methods that
exist in that file.
I have tried everything to set the classpath and I have put this classfile
Test.class
at the project folder and at the folder where the exe file is located.
Nothing works.

I have tried from Visual Studio In the "Project" menu "Add existing
item..." Locate the
files and "OK". But this didn't help.

Does anybody know if it's possible to use a class file when you use Visual
Studio .net. How do I do?
I forgot to tell you that the problem that I have is that I get compile
error saying "Cannot find class Test" if the class is called Test.

Quote:
//Tony






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.