• 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

Compile Error Java 1.1

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For reasons that pass understanding my professor has decided to use an online judging software system to grade these puzzlers he assigns everyweek the place is known as the UVA Online Judges and they have hundreds of problems you can pick from and then submit your code and I will tell you a) whether your program works b) how much cpu time it takes and c) how much memory it takes. This is all good if you are writing in C++ but the online machine doesn't work well with java (it is still running 1.1) this makes it very difficult to do things to solve the problem as you can't use a lot of things in java1.5 because the stupid machine won't recognize them and throw a compile error on your code even if the code works fine. My code is throwing a compile error and I can't for the life of me figure out why I have been trying for hours so if anyone could help me out that would be much appreciated

Thank you to anyone who can help and please ask questions if I have explained something poorly.
 
Marshal
Posts: 28235
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You explained the error message poorly. All we know from that post is that there was one. We don't know what it said, and we don't know what line of code it applies to. So why don't you tell us those things? And by the way, don't paraphrase the error message. Copy it from wherever it appeared and paste it here. Accuracy is important.
 
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
Doesn't it tell you what the compiler error message is?
 
russell lloyd
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
that's what I'm saying guys ALL this program thing says is "compile error" that's it. When I run it on my home machine it comiles just fine and runs perfectly. So I was wondering if there is a part of my program that you guys can see that would be in violation of a JVM running java1.1 As i understand it things have changed alot since 1.1 so i tried to avoid using anything that might not have existed back then. That's why I used my teachers buffered reader class so that I could use buffered reader. But the program is throwing an error and I don't know why.
 
Ranch Hand
Posts: 2412
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's hard to tell what might be causing the problem. If you don't get a message other than compile error, I would suggest surgically removing peices of the code that you expect might be causing the problem until the problem doesn't appear anymore. Then you can determine what is causing the problem.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by russell lloyd:
This is all good if you are writing in C++ but the online machine doesn't work well with java (it is still running 1.1)



It is not uncommon in the real world to have to maintain old code written in some old or obscure dialect of a language. If you think you are always going to be working with JDK 1.5, you are either going to be left in the dust of history in coming years, or be very disappointed when you are assigned to maintain some 20-year old COBOL program (which, believe it or not, is the lifeblood of most established companies).
You can download JDK 1.1 here. Don't forget to download the API documentation so you can keep track of the limitations.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic