• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error when using java.util.ArrayList

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!
I'm having a hard time getting my falling block applet game to work.
First of all I have to compile my java files using -target 1.1.
When I use a class I've made to handle the squares in my game I get an error. It seams that I can't use ArrayList?
Does anyone have a solution to this problem?
Here is my Grid class. Why can't I use this in a applet.

Applet error: error: java.lang.NoClassFoundDefError : java/util/ArrayList
When I dont use the Grid class in my Applet it works fine.
[ April 14, 2004: Message edited by: Mathias Nilsson ]
 
Mathias Nilsson
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok! I Saw that ArrayList is java 1.2.
What type of collection do you recommend to store arrays of objects
in? I want the fastest one if it is possible.
// Mathias
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be able to substitute java.util.Vector for ArrayList without much disruption.
 
Mathias Nilsson
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes! Thanks... I did that..
Is there a diffrence in performance on
Vector.add(); java 1.2
Vector.addElement(); java 1.1
Does the browsers support 1.2 or just 1.1?
// Mathias
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic