Celeste,

You raise an interesting point. I never said that you couldn't use a
VC++ (or any C++) class in Java. So that whole issue is null. 

About your whole windows registry thing, do you think a .NET app makes
use of the registry? Not unless for some insane reason the developer of
the app wants too. This isn't like old school COM where you have to
registry your components. Everything exists w/in the assembly. All the
app information you previously received from Type Libs or the registry
now exists as metadata w/in the assembily and due to the wonderful world
of reflection, get all the info you need. My point is, .NET <>
mustUseRegistry.

Something that may be of some interest to you Celeste is that if you
want to interoperate between C++ and Java, .NET actually makes it even
simpler. If you have an object C++ (say Customer) and you want to create
a new object in Java (say PrefferedCustomer), you can use multiple
languages w/in your assembily (your application) and inherit your
already written C++ object and create your new C++ object. If you like I
can provide some links to articles where you can get a feel for some of
the stuff I just decribed.

Cheers,

James

-----Original Message-----
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 24, 2001 11:16 AM
To: JRun-Talk
Subject: RE: Newbie question/Debate

James, 

Technically you can use a VC++ class in a Java program, and a Java class
in
a VC++ program, but ONLY on a Windows platform.  Which in essance breaks
the
Java creed of "write once, run anywhere".  You can't say that about the
MS
products.  The biggest difference, in my opinion, is that MS uses the
concept of the "windows registry" to find external classes, where as
Java
does NOT recognize the concept of a "registry".  Java finds it's
external
classes via the operating systems classpath and/or importing of
"packages".

Even though you can use VC++ classes in Java, and vice versa, it is a
real
pain in the rear to do so.  To work around the "windows registry
concept",
you can use a Java class in VC++ by "registering" it on a windows
machine
using a utility program that is on Sun's site (I can't remember the name
of
the utility off the top of my head), and then calling the methods of the
Java class.  You can also use a VC++ class in Java by creating a Java
class
file that declares the "native" C++ method(s) using the native keyword,
then
after compiling the class file you create a header file using the javah
command, and then you create a VC++ dll using the header file created in
the
above step to implement the native method(s) declared in the Java class.
As
I said, a real pain in the rear.  I've used Java in ASP pages, and I
have
used MS products in JSP pages, but because of the difficulties in
getting
things to "work" together, I prefer to stay solely in Java, unless I
absolutely HAVE to "integrate" into a MS system, or use a MS tool.

Celeste



-----Original Message-----
From: James Alexander [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 9:38 AM
To: JRun-Talk
Subject: RE: Newbie question/Debate


Umm....thats not quite correct. With .NET I can use any language I want,
as long as it has a MSIL compiler. If I want to use Java, I can use
Java. If I want to write an entire asp.net web app in C++ I can. Am I
locked in if I choose to use C++? I can use any language I want. On top
of that there are efforts underway for porting the .NET CLR (common
language runtime) to other platforms for true platform independence.
Pretty groovy huh? :)

james

-----Original Message-----
From: Jackie Comeau [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 24, 2001 10:28 AM
To: JRun-Talk
Subject: RE: Newbie question/Debate

Good question.

With Microsoft, your locked into Microsoft technologies. With Java, you
can 
select any platform you want. Also, if you move your platform, there is 
little to no rewriting of code (I'm talking J2EE platform). You can go
to 
any server that is J2EE certified and just move your platform over.

Another advantage is that it's evolving and merging with all the new 
technologies out there. This may be more of a long-term benefit.

As far as running as a platform/server language, it has a head-start
over 
Microsoft. Microsoft has not released it's .Net yet, has it? But J2EE
has 
been out since December, 1999.

There are disadvantages with Java. It basically uses only the java 
language. It works with other languages, but it is language-neutral.

As a Java developer, your skills are more transferable. If your a
Microsoft 
developer, your locked into their skills.

Jackie

On Monday, July 23, 2001 10:09 PM, Bert [SMTP:[EMAIL PROTECTED]] 
wrote:
> I know a lot of companies are using Java , Ejb , Oracle
> and Jsp but what are real the main benefits besides being cross
platform
> than using Asp and Com,Com+ or Asp.net and C# . I know these are 
Microsoft
> only platform but what is the real advantage as to using Java in the
real
> world?
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to