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 / C# / March 2008

Tip: Looking for answers? Try searching our database.

java.lang query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian Stoop - 13 Mar 2008 15:14 GMT
What references in a C# .NET project are needed to include java.lang

I would like to make java.lang.System.getProperty(..) calls,

thanks,
Jon Skeet [C# MVP] - 13 Mar 2008 15:26 GMT
> What references in a C# .NET project are needed to include java.lang
>
> I would like to make java.lang.System.getProperty(..) calls,

You'd need to include the J# redistributable library.

What property are you interested in though? There's likely to be a
better way to do it in "normal" .NET.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Brian Stoop - 13 Mar 2008 17:12 GMT
Thanks Jon. I read "user.home" succesfully.

B

>> What references in a C# .NET project are needed to include java.lang
>>
[quoted text clipped - 4 lines]
> What property are you interested in though? There's likely to be a
> better way to do it in "normal" .NET.
Jon Skeet [C# MVP] - 13 Mar 2008 17:37 GMT
> Thanks Jon. I read "user.home" succesfully.

Look at Environment.GetFolderPath - that's probably a better way of
doing it.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Bjorn Brox - 14 Mar 2008 08:57 GMT
Brian Stoop skrev:
> What references in a C# .NET project are needed to include java.lang
>
> I would like to make java.lang.System.getProperty(..) calls,

Why.... I am sure you can use C# directly

Anyhow: Here is a good starting point for people used to java:

http://msdn2.microsoft.com/en-us/library/ms973842.aspx

Signature

Bjorn Brox


Rate this thread:







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.