This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use java to access windows resources  RSS feed

 
IWAENI TUNJI
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to writing a program that manipulate Microsft Windows Environment
Best Regards
Tunji
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Only way to access platform specific features in java is through the native methods, but it will remove the portability of the application.

See this,

http://java.sun.com/j2se/1.4.2/docs/guide/jni/
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain what you mean by "manipulate Microsoft Windows environment"? Ofcourse you can write programs in Java that run on Windows. What exactly do you want your program to do?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on exactly what you want to do.

There are some things you can reach through java.lang.System. And a few things are possible using java.awt.Toolkit. For example, you can get an "instance of the system Clipboard which interfaces with clipboard facilities provided by the native platform."
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!