2,443 Posted Topics

Member Avatar for jrosh

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. …

Member Avatar for peter_budo
0
108
Member Avatar for rajuchacha007
Member Avatar for Little Bunny

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).

Member Avatar for masijade
0
66
Member Avatar for dewyShaikh

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.

Member Avatar for masijade
0
180
Member Avatar for karen.tao

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 …

Member Avatar for masijade
0
275
Member Avatar for masana1844
Member Avatar for masijade
0
44
Member Avatar for jrosh

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 …

Member Avatar for peter_budo
0
84
Member Avatar for jrosh

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?

Member Avatar for jrosh
0
144
Member Avatar for jrosh

By making sure the right versions of java and javac are in your PATH (not CLASSPATH), or call the proper version explicitly.

Member Avatar for masijade
0
110
Member Avatar for ishlux

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 …

Member Avatar for masijade
0
70
Member Avatar for jrosh
Member Avatar for msi_333
0
115
Member Avatar for Gekke11

This [inlinecode](!=p)[/inlinecode] is not a statement/expression. [i]What[/i] is "not equal to" p?

Member Avatar for tha_ratl
0
101
Member Avatar for fox07

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 …

Member Avatar for sbhavan
0
130
Member Avatar for demi88
Member Avatar for carsein

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 …

Member Avatar for carsein
0
89
Member Avatar for dmonopoly10

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?), …

Member Avatar for masijade
0
528
Member Avatar for rp_prasanna

[code] "\\$" // instead of "$" [/code] etc, etc. [url]http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html[/url]

Member Avatar for ~s.o.s~
0
94
Member Avatar for jrosh

I'm sorry, but what do you think a ScrollPane is, if not simply a JPanel with ScrollBars?

Member Avatar for masijade
0
82
Member Avatar for jrosh

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]

Member Avatar for masijade
0
102
Member Avatar for aru211285

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]

Member Avatar for masijade
0
103
Member Avatar for fox07

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.

Member Avatar for masijade
0
81
Member Avatar for scias23

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]; …

Member Avatar for masijade
0
137
Member Avatar for dasatti
Member Avatar for dasatti
0
3K
Member Avatar for ishlux

[url]http://tomcat.apache.org/tomcat-6.0-doc/index.html[/url] And Read Chapters 1 - 4 of the User Guide portion.

Member Avatar for masijade
0
127
Member Avatar for jamojo

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?

Member Avatar for jamojo
0
123
Member Avatar for tha_ratl

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.

Member Avatar for tha_ratl
0
156
Member Avatar for just asif

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]

Member Avatar for masijade
0
47
Member Avatar for aparnasofte
Member Avatar for ishlux
Member Avatar for docesam

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 …

Member Avatar for tux4life
0
152
Member Avatar for Anon17

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 …

Member Avatar for masijade
0
126
Member Avatar for T3Roar

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 …

Member Avatar for T3Roar
0
117
Member Avatar for guessme

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.

Member Avatar for guessme
0
66
Member Avatar for BlackPhoenix

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.

Member Avatar for BlackPhoenix
0
256
Member Avatar for guessme
Member Avatar for sven1981

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 …

Member Avatar for masijade
0
188
Member Avatar for db11
Member Avatar for rugae

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 …

Member Avatar for eng.M4AH
0
164
Member Avatar for valleymorning

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 …

Member Avatar for valleymorning
0
109
Member Avatar for jadeite100

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" …

Member Avatar for dixitworld
0
955
Member Avatar for emint

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 …

Member Avatar for JamesCherrill
0
114
Member Avatar for swastikpadhy
Member Avatar for cesarnz
Re: sftp

[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] ;-)

Member Avatar for peter_budo
0
134
Member Avatar for spalax

It [i]might[/i] help to know [i]exactly[/i] what "doesn't work" entails. "Doesn't work" doesn't help.

Member Avatar for spalax
0
3K
Member Avatar for emint

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 …

Member Avatar for emint
0
222
Member Avatar for loozax

[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?

Member Avatar for Godstryke
0
191
Member Avatar for ravikiran582

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?

Member Avatar for masijade
0
34
Member Avatar for loozax
Member Avatar for loozax
0
239
Member Avatar for onindita

Okay? So what do you have so far, and what problems is it giving you? We are not going to do it for you.

Member Avatar for KirkPatrick
0
153
Member Avatar for mandible

The End.