Shop OBEX P1 Docs P2 Docs Learn Events
Strange compilation message — Parallax Forums

Strange compilation message

bxgirtenbxgirten Posts: 79
edited 2008-12-06 01:08 in General Discussion
I searched the archives but didn't find anything for this strange compilation message:

[noparse][[/noparse]Java Error] Foo.java(0): Error: Type java/lang/Double was not found

Also, I didn't find it in the Javelin IDE Error Codes that have been posted.

Any ideas?

Comments

  • Sarge516Sarge516 Posts: 6
    edited 2008-12-05 04:41
    I've very new to Javelin. Actually, mine is on order and I'm playing with java programs in the IDE. I have no problem with Java but am getting the same message on a couple of classes.

    Getting Error: Type java/lang/Double was not found.
    Also getting [noparse][[/noparse]Java Error] myprog.java(0) Error: Type java/lang/Character was not found.


    Any ideas ?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-12-05 08:33
    Because the Javelin only supports a subset of java, not all datatypes
    used in pc java are available. Please post the java file that
    generated the error.

    regards peter
  • Sarge516Sarge516 Posts: 6
    edited 2008-12-06 01:08
    Well, I went through the code and started yanking parts out to post a stub test and found the 2 issues. I started on 1.3 java so I've·missed the 1.2 world.

    The character issue was trying to append a char to a String

    char atSign = [url=mailto:'@']'@'[/url];

    String domain = "yahoo.com";

    String s1 = atSign + domain;· // Error

    The Double issue had to do with·some nested methods. The methods work, but nesting doesn't.

    System.out.println(winner(game(1,2));

    Thanks for being the unintentional guru peter!

Sign In or Register to comment.