import Drag & Drop package in VJ++

I use Visual J++ for developing.

I'm trying to use Drag & Drop i.e. the java.awt.dnd.* package.

I downloaded the JDK1.3 version and added it to my CLASSPATH.

CLASSPATH=d:\java\jdk1.3\src.jar;

When I try to import the dnd package only the dragsource events and listeners are listed.

The DragSource and TargetSource aren't listed.

I've also tried adding the jdk1.3\src.jar to the CLASSPATH of the project with the same

result.

I've tried extracting all the classes into a directory and the setting the classpath to this directory.

When I then do an import all the classes appear but if you try to use say the DragSource you get "Cannot find definition for 'java.awt.dnd.DragSource'"

If I set the CLASSPATH of the project to the directory and try to compile my project I get

"Cannot load predefined class 'java.lang.Object' for the 1st class in my project.

I've also downloaded the JDK1.4 and copied the src.zip into the windows\java\classes directory renaming it classes.zip

That didn't help either.

I've run out of ideas, for being able to use this package with Visual J++, if anyone has any ideas about getting it to work I'd appreciate it.

TIA

Lynda

[1280 byte] By [brenock] at [2007-9-26 1:26:58]
# 1

My personal opinion is that VJ++ is not Java and has been made on purpose by Microsoft to torpedo the lovely cross platform aspects of Java out of fear about the future of real Java language and you can forget about them being compatible.

Proper Sun compliant Java has brag and drop if you need it.

use:

java.awt.dnd.DragSource

java.awt.dnd.DragGestureRecognizer

java.awt.dnd.DragGestureListener

java.awt.datatransfer.Transferable

java.awt.dnd.DragSourceListener

garyjones32 at 2007-6-29 1:10:39 > top of Java-index,Archived Forums,New To Java Technology Archive...