Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / January 2004

Tip: Looking for answers? Try searching our database.

jbimp usage.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dragos CIULICA - 15 Jan 2004 01:25 GMT
Hi!
I am trying to link a jar file converting it into a dll and then add
it as a reference to a .NET project. The jar file contains a lots of
".java" files situated into some folders describing the name space
they are package-ing (like /java/util/*.java). For this, I used jbimp
like this:

jbimp /t:library file_name.zip /oud:file_name.dll

I also uset jbimp with those parameters:
jbimp /t:library file_name.zip /oud:file_name.dll /recurse

and then renamed file_name.zip into file_name.jar:
jbimp /t:library file_name.zip /oud:file_name.dll /recurse

All of them returns the same message:

JbImp error: No input files. Exiting...

Why? What's wrong?

Thanks!
Mike Smith - 17 Jan 2004 03:47 GMT
You need to have a jar of .class file, not .java files.  The rest of
your parameters look ok.  If you get a message about unreferences
classes try adding usestubrefs to your parameters.

Mike
Dragos CIULICA - 20 Jan 2004 10:32 GMT
Yes ... indeed! It works now! Thanks!

> You need to have a jar of .class file, not .java files.  The rest of
> your parameters look ok.  If you get a message about unreferences
> classes try adding usestubrefs to your parameters.
>
> Mike
Michael Green - 19 Jan 2004 21:55 GMT
JBImp converts java byte codes to .Net IL. If you have the source code for
the classes you are converting you will be better off letting J# convert
the source code to J#.

I hope this is helpful,

Michael Green
Microsoft Developer Support

--------------------
| From: dragos.ciulica@softure.com (Dragos CIULICA)
| Newsgroups: microsoft.public.dotnet.vjsharp
[quoted text clipped - 7 lines]
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1074129941 16541 127.0.0.1 (15 Jan 2004
01:25:41 GMT)
| X-Complaints-To: groups-abuse@google.com
| NNTP-Posting-Date: Thu, 15 Jan 2004 01:25:41 +0000 (UTC)
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.su
l.t-online.de!t-online.de!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!ne
ws.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!postnews2.go
ogle.com!not-for-mail
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.vjsharp:5168
| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
[quoted text clipped - 21 lines]
|
| Thanks!
Dragos CIULICA - 20 Jan 2004 10:35 GMT
Yes, it helps! :) I think I'll add those Java files to .Net project
... it's not a good ideea using 2 virtual machines ...

> JBImp converts java byte codes to .Net IL. If you have the source code for
> the classes you are converting you will be better off letting J# convert
[quoted text clipped - 50 lines]
> |
> | Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.