Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Help with installation - WINDOWS NT

I am trying to run the 'basic' sample 'helloSpace' with GigaSpacesCache5.2 and JDK6 (1.6.0). I did he basic set up, updated my path, loaded latest versions of whatever is involved. Now I'm getting the following message:

....
Note: ..\src\com\j_spaces\examples\hellospace\HelloWorldIterator.java uses unchecked or unsafe operations
Note: Recompile with -Xlint:unchecked for details
press any key to continue ....

OK, so I added that flag and I got:

....
..\src\com\j_spaces\examples\hellospace\HelloWorldIterator.java:51 warning: unchecked unchecked call to add(E) as a member of the raw type java.util.Collection collection.add(new Message()); --- with mark under the first '('
1 warning
Press any key to continue

Am I missing a header file or something???

path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;%JAVA_DK%\bin

where JAVA_DK = ...\1.6.0

Thank you,

Vlad

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2007-02-25 09:36:01 -0500

sxc505 gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Vlad,

Please change:
..\src\com\j_spaces\examples\hellospace\HelloWorldIterator.java - line 50

From:
Collection collection = new ArrayList();
To:
Collection<Message> collection = new ArrayList<Message>();

This will remove the warning you get.

Please note GigaSpaces 5.2 was not certified yet with JDK 6.0.

In case you have multiple JDKs Installed - make sure JDK 6.0 Home\bin located first in your classpath to allow the \GigaSpacesEE5.2\examples\Basic\helloSpace\bin\compile.bat to be compiled without version problems.

Shay

answered 2007-02-25 10:48:03 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2007-02-25 09:36:01 -0500

Seen: 33 times

Last updated: Feb 25 '07