Public Group

# Java swing in J#

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

## Recommended Posts

My brother-in-law is having some problems with a Java program he's working on. He built the program in Netbeans, and asked for some basic help. However, I do all my programming in VS2005, and J# is having trouble building the code. I found an older thread on here that partially went into this same topic, but it's been retired: http://www.gamedev.net/community/forums/topic.asp?topic_id=444345 I do know that he has included
import javax.swing.*;
import javax.swing.event.*;
But I still get "error VJS1161: Cannot find type 'javax.swing.JFrame'". This is the only error I get. I haven't actually done any Java programming since 1997, when it was still Java 1.2, so a lot of this code has me lost, but I figure I can figure out what he needs if I can get it to compile. Any words of wisdom?

##### Share on other sites
Quote:
 Original post by soniqI haven't actually done any Java programming since 1997, when it was still Java 1.2, so a lot of this code has me lost, but I figure I can figure out what he needs if I can get it to compile.Any words of wisdom?

J# is not Java. J# is a language from MS with a suspiciously similar syntax but entirely different (and incompatible) libraries and behavior. It's only really meant as a transitional language for people who want to port over lots of existing Java code to C# and/or .Net.

Go get a proper Java compiler and IDE instead.

##### Share on other sites
J# is not Java, and it's being retired. If you want to help your brother-in-law, you should get Netbeans (Java SE version). Java 1.2 was a terrible language, but it has improved much since then.

1. 1
2. 2
3. 3
frob
20
4. 4
Rutin
19
5. 5

• 32
• 13
• 11
• 9
• 18
• ### Forum Statistics

• Total Topics
632555
• Total Posts
3007066

×