Scanner object

The Visual J# we have presently installed where I teach does not have many of the objects found in the java.utils package found in JAVA 5.0 Among other objects that were not found isScanner, one used extensively in the text that we have adopted. Does the Visual J# upgrade address this problem at all?
[320 byte] By [RichardMeyers] at [2008-2-2]
# 1

Visual J# provides an independently developed set of class libraries designed to provide the functionality equivalent to most JDK level 1.1.4 class libraries and includes classes specified in the College Board's Advanced Placement curriculum for Computer Science. Visual J# also supports Microsoft extensions shipped with Microsoft Visual J++ 6.0, including Windows Foundation Classes (WFC) and many other com.ms.* class libraries.

Visual J# is designed to provide class library support functionally equivalent to most of the JDK level 1.1.4 packages that were included in Visual J++ 6.0. Some classes support functionality equivalent to JDK level 1.2 functionality. For a list of these classes in Visual J# 2005, see Additional Class Library Support.

For more information on class library support with visual J# 2005, please refer to
http://msdn2.microsoft.com/library/67f25kx3(en-us,vs.80).aspx

I would recommend you to try Visual Studio 2005 Beta2 available on msdn.microsoft.com and Visual J# 2005 Express (specially for academia and hobbyists) @ http://lab.msdn.microsoft.com/express/vjsharp/

Thanks,

VarunGupta at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 2
is there any projection date for Visual J# to include the scanner object? i like to use the visual J# but i wish i could use the scanner object.
AlphaGhost at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 3

I really don't remember the Scanner object from java.utils, what's it supposed to do? (do you have a URL to online JavaDoc about it?)

See GNU Classpath project in case they've implemented it. If they did you can grab their implementation or adapt it. Also you can see Sun's Java sourcecode if you have JBuilder or similar tool (maybe it's available at java.sun.com) and see if you can port that code or rewrite it to J# (don't copy the code verbatim even though it may compile at J#, for copyright reasons)

GeorgeBirbilis at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 4
http://java.sun.com/j2se/1.5.0/docs/api/ then in the packages menu on the top left find java.util then in the menu below that find scanner.
AlphaGhost at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 5

thanks, found the full URL to the Scanner class description:

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html

GeorgeBirbilis at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 6

Hi Varun,

only http://lab.msdn.microsoft.com/ seems to work now, the URL to get vjsharp express or vjsharp seems broken

this looks very bad since this URL should be alreaded posted in many forums

GeorgeBirbilis at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 7
Are you using full regular expressions with the Scanner object in your code, or just use it with simpler patterns (say the default one which is the Space [used as separator])?
GeorgeBirbilis at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 8

at least

http://msdn.microsoft.com/vstudio/express/support/install/

is still OK (this is more recent one, to get the ISO images for the VS.net express editions)

GeorgeBirbilis at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 9

Heard Sun Java has just been opensourced (most of it) under GPL license v.2, see below:

http://www.sun.com/2006-1113/feature/story.jsp
https://phoneme.dev.java.net/source/browse/phoneme/
https://openjdk.dev.java.net/source/browse/openjdk/
https://glassfish.dev.java.net/public/downloadsindex.html

So you can grab the Scanner class implementation (and all related code from other classes it uses) from there

I don't remember if the GPL license requires all derivative works to be GPL though, think v.1 of that license does, but v.2 might be more flexible. If it's more flexible, I guess the J# team could also grab that code and add it to J#

GeorgeBirbilis at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 10

seems the license is more flexible than GPL, they use the "Classpath exception" license addendum

http://www.sun.com/software/opensource/java/faq.jsp#g4

GeorgeBirbilis at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...