Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Visual J++ beginners question

 
macca cronin
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I've just started using Microsoft Visual J++ and I have a problem regarding its use. It is regarding the jdk version that Visual J++ (version 6.0) uses. I want to use the String class methods split() among others that are part of the java.util.regex.* package but the version of Visual J++ I have does not recognise these packages. When I import just java.util.* I get the error "'split' is not a method of class String (J0235)", whereas whan I include the java.util.regex.* package I get the error "Undefined package java.util.regex (J0051)". When I was not using the Visual J++ environment and just javac from the commandline I got the same problem, until I updated my jdk from 1.3 to 1.4 so that's why I think the problem lies with the jdk that Visual J++ is using (however I really don't know my way around Visual J++ yet so I could be totally wrong!!). Could anyone let me know why I'm getting this problem and how I might solve it. Thanks very much.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Visual J++ is outdated.

Why don't u start using open-source upto date IDE like Eclipse??
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J++ never used any official JDK; it used Microsoft's own, subtly different, Java implementation. It's been abandonware for many years now; it was never upgraded past something like JDK 1.1.3 compatibility. Please don't waste your time (or ours!) by trying to use it.

Don't use it. Eclipse, NetBeans, IntelliJ IDEA, and Borland JBuilder are some of the excellent Java IDEs available now: the first two are absolutely free. See www.eclipse.org to download Eclipse.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic