Advertisement Jump to content
Sign in to follow this  
Halsafar

[java] Java Graphical Potential

This topic is 4879 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am having to learn Java via Linux Box so as of now I am limited to console works. I am curious if there is any way I can open up a window and begin working out graphics. Is there per-say a "DirectX" for Java for Linux? Or a common Graphical Library which can be used to get at least 2D graphics going in a "Fullscreen" environment? Any tutorials would be nice. Thanks -Halsafar

Share this post


Link to post
Share on other sites
Advertisement
If you have to work in a linux console environment there probably isn't any way you could use graphics. On linux you generally need to be running X-windows for that. It might be that there are some ways to run java graphically through a vesafb driver but I really doubt it.

Share this post


Link to post
Share on other sites
Quote:
Original post by Horizon
If you have to work in a linux console environment there probably isn't any way you could use graphics. On linux you generally need to be running X-windows for that. It might be that there are some ways to run java graphically through a vesafb driver but I really doubt it.


I doubt it, AWT/Swing specifically cries about the lack of an X server if you try to run GUI apps from a terminal without an X server. I doubt they ever considered such an option at Sun (because I've certainly ran into too many bugs in the API to have any confidence in their developers).

Share this post


Link to post
Share on other sites
Quote:
Original post by Horizon
If you have to work in a linux console environment there probably isn't any way you could use graphics. On linux you generally need to be running X-windows for that. It might be that there are some ways to run java graphically through a vesafb driver but I really doubt it.

You may be able to use the SDL binding for Java together with the svgalib version of SDL.
I haven't tried though and that SDL binding may rely on other libraries too if you're unlucky..

edit: At least the original version claims to work on console-only systems..

Share this post


Link to post
Share on other sites
Note, that for the above to work you will need direct console access. If you are also using something like a terminal (telnet, ssh, etc) this will not work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!