2,443 Posted Topics
Re: Check the version JCreator is using in its preferences and then check which "java" is on your PATH. Seemingly the javac used by JCreator is newer than the java on your PATH. That is the [i]only[/i] thing that causes this message, is when the compiler is newer than the jvm. … | |
Re: I don't believe you can. You would probably have to create your own Calendar implementation (in the way GregorianCalendar is an implementation of Calendar). | |
Re: I would say to ask matlab support if they provide a Java API, as they are the ones who would provide it. The other option is to google for a thrid party API. | |
Re: You entered "a" at the prompt, didn't you? According to your enum class these [code]murder, arson, assault, fraud, theft, vandalism, drunk, littering, badHair[/code] are the valid entries. You [i]might[/i] wish to wrap the line [code]CrimeType newCrime = CrimeType.valueOf(crime);[/code] in a try catch block so that you can simply inform the … | |
Re: [url]http://java.sun.com/docs/books/tutorial/networking/index.html[/url] | |
Re: As long as you installed Java correctly, then "double-clicking" (or however the target system handles launching programs from the "desktop") will work. Otherwise, it depends on the system. But, as long as you have a correctly configured manifest file in the jar, and you have installed java correctly, there is … | |
Re: That is how you create a jarfile, not how you "run it". Now, in which step are you having problems. When creating it, or when executing it? | |
Re: By making sure the right versions of java and javac are in your PATH (not CLASSPATH), or call the proper version explicitly. | |
Re: Read the manual. I see no need to repeat information here that is freely, and readily, available from the same source from where you downloaded the software. It is also provided [i]in[/i] the download. We would not be able to state it as well as the manual anyway. Do you … | |
Re: [url]http://java.sun.com/docs/books/tutorial/deployment/jar/index.html[/url] | |
Re: This [inlinecode](!=p)[/inlinecode] is not a statement/expression. [i]What[/i] is "not equal to" p? | |
Re: Well, well, afraid you're going to be asked to explain your code to your instructor? Or do you have to turn in a written explanation/description of it with the code? In any case, if you had done your assignment, rather than copying it, you would probably understand it. P.S. Whether … | |
Re: What, [i]exactly[/i], are you having problems with? | |
Re: Huh? What are talking about. Thread [i]has[/i] no dispose method. GUI elements normally do, but that is something different. Those you have to call because some elements are held onto (i.e. referred to from somewhere) even after all [i]your[/i] references have gone out of scope, and some information is sometimes … | |
Re: The SQLLite driver is, at best, a Type 2 JDBC Driver. It is only a JNI wrapper around the SQLite library, and that code shown does not use JDBC functionality, at all. P.S. "func" is "function" and "agg" is "aggregate". The first is creating a function (seemingly a db function?), … | |
Re: [code] "\\$" // instead of "$" [/code] etc, etc. [url]http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html[/url] | |
Re: I'm sorry, but what do you think a ScrollPane is, if not simply a JPanel with ScrollBars? | |
Re: By giving your JPanel a different layout, rather than using the default FlowLayout. [url]http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html[/url] | |
Re: Open the InputStream and [i]read[/i] it. read the following thoroughly and implement its suggestions. [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] | |
Re: See the "printf" method of PrintWriter, or the format method of String in the API docs, then simply format the print so each number (with leading/separating/trailing whitespace) uses the same number of characters. | |
Re: Initiating an array simply creates "holding spaces" for the elements. Each of those elements is, however, currently "null". If you expect to have a "Player" predefined at every element, then you need to loop over the array and create one in each spot. i.e. [code] String[] array = new String[5]; … | |
Re: So, waited until the last minute to do your project assignment, huh? | |
Re: [url]http://tomcat.apache.org/tomcat-6.0-doc/index.html[/url] And Read Chapters 1 - 4 of the User Guide portion. | |
Re: Can't do it. I mean, don't you think that would be a [i]huge[/i] security hole to be able to just write things onto the server? | |
Re: If you are getting the "response" then you also sent the "request" so you should already have "A and B". You need to better explain your situation and your goal. | |
Re: I'm sure there is someone who can. Whether or not you will find him/her here is another question, however. Also, whether or not (s)he [i]will[/i] is yet another question, however. Start with the tutorials and go through them from beginning to end. [url]http://java.sun.com/docs/books/tutorial/reallybigindex.html[/url] | |
Re: Who says you can produce it in a quarter of the time? And "more or less" can be a much larger discrepancy than you are attempting to make it sound. And, AFAIK, neither of those languages have the strong-typing, nor security that Java does. Which, even if you could produce … | |
Re: That is bad coding. Don't reuse statement objects (i.e. don't make statement and resultset objects instance variables, they should be opened, used, and closed as narrowly as possible, and try not to share connections, use a connection pool and get, use, and close connections from the pool as narrowly as … | |
Re: According to the API docs, countTokens() returns [quote]the number of tokens remaining in the string using the current delimiter set[/quote] So, before you call nextToken on a "tokened String" with 5 elements it returns 5, after calling nextToken once it returns 4, so, what do you think is happening with … | |
Re: What are you talking about? What from apache commons do you want to use? Are you thinking of using the FTP library from commons, or something else? The question, IMHO, doesn't make a lot of sense. | |
Re: the awt package. For 3D graphics you are going to need an external 3rd party library. Google a bit there are a few of them. | |
Re: Have you tried placing quotes around the portion of the classpath with the space in it? Or around the entire classpath? Also, make sure that the configuration for tomcat also has quotes around the portion of the path with spaces in it in it's definition of the jdk to be … | |
Re: What do you mean "a java interface on a website"? | |
Re: iamthwee is right, you should be using ArrayList. You cannot increase the size of an existing array. You have to create a new array that is one larger than the current array, then you can use System.arraycopy to copy the existing elements from the old to the new array, than … | |
Re: Loop through the array, saving the "last" value, as well as the currently "longest" duplicate (both what it is and how many there were, depending on what your output needs to be) and increment a "current duplicate" counter. Then, when the value changes, or the array ends, compare that counter … | |
Re: Look a bit closer at the varying "exec" methods. One of them allows you to pass environment settings (read variables). The "exec" does [i]not[/i] have a full environment, it is not a real shell. You need to pass the oracle_home, etc, variables to it's "shell" using the form of "exec" … | |
Re: It probably has to do with the fact that you're not starting any threads, or at least not properly, but I have no desire to have yet another long "discussion" about threads and the Swing Event Thread only to have it go nowhere, which is what [i]always[/i] seems to happen … | |
Re: [url]http://www.jfree.org/jfreechart/[/url] | |
Re: [QUOTE=peter_budo;941727]google >> [URL="http://www.google.co.uk/search?hl=en&q=java+sftp+tutorial&btnG=Search&meta="]java+sftp+tutorial[/URL][/QUOTE] Do it this way [URL="http://lmgtfy.com/?q=java+sftp+tutorial"]java+sftp+tutorial[/URL] ;-) | |
Re: It [i]might[/i] help to know [i]exactly[/i] what "doesn't work" entails. "Doesn't work" doesn't help. | |
Re: By adding more queries? If you mean you have "12" "mdb" files to read, then open 12 connections. If you mean you have to read information from multiple tables within the same "mdb" file, then add additional queries for them. If you need the data from all the tables combined … | |
Re: [QUOTE=loozax;939643]Can someone give me a code for this? ... [/QUOTE] Yes. I won't though. Read the terms and conditions of this site, again, please. You [i]have[/i] read them at least once, already, right? | |
Re: My cousin Joe is the one responsible for making sure no one steals my file folders. He's my "folder watcher", but he's a little big to be called "mini". Should I hire him out to you anyway? | |
Re: modulo (%) [url]http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op1.html[/url] | |
Re: Okay? So what do you have so far, and what problems is it giving you? We are not going to do it for you. | |
Re: [code] $ENV{UNIXVAR} [/code] |
The End.