由买买提看人间百态

topics

全部话题 - 话题: jdk
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
g*****g
发帖数: 34805
1
来自主题: Java版 - faint, unreachable statement in java
Not for compiler bah, JDK is buggy, but compiler
should be stable.
w******t
发帖数: 1422
2
来自主题: Java版 - Ant problem
which version of ant and what jdk verson you use? and on windows?
c****u
发帖数: 3277
3
来自主题: Java版 - Ant problem
jdk 1.4.2,
ant 1.5.1,
windows xp.
m**c
发帖数: 90
4
来自主题: Java版 - 入门Java CLASSPATH问题:

Remember, sometimes, not only class file needs to be in the CLASSPATH, but
also other type of files. For example, properties file. If you take a look
at /jre/lib, you will see some files with extension ".properties". Those
files are used as configuration files which must be in the CLASSPATH,
otherwise, some classes will complain about it. When a directory is included
in the CLASSPATH, you can load any file using
"obj.getClass().getResourcesAsStream(...)". This can be very useful: let
t****s
发帖数: 141
5
jimi is too old and not supported long time ago. In JDK 1.4, there is a new
package supproting generating png files. Forget about GIF since it is still
patented.

gif/png
solve
format
f********h
发帖数: 149
6
来自主题: Java版 - JDK Source?
there is a file called src.zip including all the source codes.
g*****g
发帖数: 34805
7
来自主题: Java版 - JDK Source?
Not all, just some utility classes.
I don't think all sources will be released.
P*C
发帖数: 132
n*****k
发帖数: 123
9
来自主题: Java版 - JDK Source?

All the source code are included except all the native methods and some
classes closly related to the implementation of the JVM.
w********c
发帖数: 2632
10
来自主题: Java版 - JDK Source?
is rt.jar included somewhere?
f********h
发帖数: 149
11
来自主题: Java版 - JDK Source?
yes. Should come with your j2sdk distribution
t**s
发帖数: 22
12
来自主题: Java版 - JDK Source?

Come on, did you ever read the source code? The developer release (SCSL) is
everything, no exception.
j*****g
发帖数: 980
13
来自主题: Java版 - JDK Source?
SCSL only has release for 1.4.1 now.
http://wwws.sun.com/software/java2/download.html
j**e
发帖数: 3
c******h
发帖数: 5
15
来自主题: Java版 - Generating Java code in SCR
My specification runs correct in SCR, but cannot generate Java code by SCR.
It shows the mistake is the compiler problem, I have already installed the
JDK, why can't it geneate the code? Thanks.
s****e
发帖数: 113
16
来自主题: Java版 - 请问java的ide
我想用ide开发,希望能有两个功能
1。能够单步执行,方便调试
2。能够自动进行格式调整,就像vc一样,用alt+f8就能对选定的文本进行格式调整
因为以前都是用jdk,所以不知道哪些ide能作到。谢谢指点
w******t
发帖数: 1422
17
tried to install (first time try JB) - somehow screwed my eclipse (jdk version
issue)
anyhow, by a quick look at it, doesn't seem JB has anything too special.

said,
from
part
m********r
发帖数: 23
18
I have a numerical analysis program written in Java. It takes natural
numbers and does some computations and produces interesting output. It's
very CPU/memory intensive. The fastest machine I can access, a P4 Linux
server with 1G memory, can only handle up to 19. Wonder if someone here can
help me to get more results. What you have to do is pretty simple - run the
program and send me the output. It should run fine on JDK 1.2 or higher. If
you are interested, please leave your email below or send
c*****t
发帖数: 1879
19
1. make sure that you used the best algorithm for the problem.
Use Greedy, Dynamic Programming, Divide-n-Conquer etc rather
than brute force.
2. use a profiler to determine where the problem lies. javap,
which is included with JDK, is a simple enough profiler that
you could use.
3. general java optimization tips:
1. avoid memory allocations (i.e. reduce object creation).
This is particularly true if you are doing grid computing.
If you are not careful, you could be al
t********k
发帖数: 808
20
Clob clob = null;
String strTemp;
... //给strTemp赋了一文章的内容
clob.setString(1,strTemp)
执行到上面一句是出现如下错误
用的系统是Oracle9i
看了JDK,setString在1.4已经支持了
而我用的Bea Weblogic 8.1
用的是JDK1.4.1
为什么?
java.sql.SQLException: 不支持的特性
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBEr
ror.java:690)
at o
m******t
发帖数: 2416
21

I'm sorry, I didn't realize you were using Clob.setString() already.
Never mind the second question.
I remember Oracle has some weird way of handling clobs and blobs. Last time I
had to do this, I had to downcast the drive to the oracle driver class and
call some proprietary methods on it. And that was around JDK 1.3.1 or so...
c*****s
发帖数: 214
22


Client端下载完applet开始执行时,是用自己的虚拟机执行自己的程序,已经和服务端完
全没有关系了,服务端甚至可以没有JDK只有WEB Server。如果你一定要让服务端知道执
行的情况,就一定要有通讯的操作写在程序里面。
m******y
发帖数: 588
23
You need to compile the applet code into XXX.class using jdk.
Then you can use the applet in the html page like



<br /> HTML Test Page<br />


The applet will appear below in a Java enabled browser.

codebase = "."
code = "XXX.class"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>


z****g
发帖数: 2497
24
就是jdk/lib/tools.jar的源程序。
主要是想看看Scanner.java是怎么implemented的。
多谢啦。
f********h
发帖数: 149
25
I don't if it is included in src.zip which contains lots of source code of jdk
xt
发帖数: 17532
26
来自主题: Java版 - Stupid IBM JVM: operator precedence

Yeah, you are right. So it is the IBM JDK that sucks.
x***n
发帖数: 39
27
来自主题: Java版 - Stupid IBM JVM: operator precedence
I'll test it after I go back home and get an IBM JDK.
Please also try to think of an IBM bug and so that we can agree on you.

call,
E*******s
发帖数: 42
28
来自主题: Java版 - 问一个j2ee setup问题
I am brand new to EJB.
Today I downloaded J2ee 1.4 from Sun site, and tried to play with it.
I can run the sample using ant.
but when I try to type in some java files( I copied from Headfirst EJB book),
and tried to compile using
javac *.java
I got: symbol not found: javax.rmi.RemoteException.
I did include j2ee.jar in the classpath. What else do I need to set up? or
there are more jar files to download?
Bow!!
one more confusion.
is jdk1.3 included in j2ee 1.4, should I downloaded jdk first befo
r*****l
发帖数: 2859
29
来自主题: Java版 - 问一个j2ee setup问题
Install jdk.
w******n
发帖数: 692
30
来自主题: Java版 - java在美国到底怎样?

老实讲那个SWT也是个乱七八糟的东西,你用过最新的Weblogic Workshop吗?
那是我见过的最好的Java GUI了,不知道BEA是不是改过JDK.
s******r
发帖数: 51
31
来自主题: Java版 - JBuilder question
I pulled a very simple java file into JBuilder 9 and try to compile it. The
make command is grey. My java file is the a simple data class with gets, sets,
but no main. And it's not in any package. I set the default project jdk as the
JB9's default java version 1.4.1_02-b06. What's the problem?
I also have my j2sdk1.4.1_06 installed under c: drive. But after i set up
CLASSPATH = .;C:\j2sdk1.4.1_06\lib\tools.jar;C:\j2sdk1.4.1_06\lib\dt.jar
path = C:\j2sdk1.4.1_06\bin;.....
i cannot find javac anyw
xt
发帖数: 17532
32

Maybe, but I do not like IBM java stuffs. Their JDK sucks!
It is just too buggy.
w********c
发帖数: 2632
33
又来了又来了,一提到IBM的jdk你又来劲了。:)
B******N
发帖数: 445
34
Java的缺点在于Sun不够牛比,当然是跟MS相比。所以它不能,把java jdk做的很好。bug
很多。最终要的是它没能力控制主IDE的开发,倒置IDE市场一片混乱。都说自己的好,其
实没一个好的。跟MS Visual studio .net相比,所有的java
ide都是crap。倒至developer疲于适应各种crap。
e***g
发帖数: 158
35
I myself am happy with java, with its language, its JDK,
its runtime, its tools(including IDE), its libraries,
and most of all, its community. but I may be just ignorant.
w******n
发帖数: 692
36
来自主题: Java版 - JDK 1.5 is out
http://java.sun.com/j2se/1.5.0/index.jsp
New features listed here:
http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html.
I find Class Data Sharing is pretty funny. But I don't see there
are significantly improvement in Swing.
c***r
发帖数: 4631
37
来自主题: Java版 - JDK 1.5 is out
i feel it is getting more complex, it is complex enough.
w******n
发帖数: 692
38
来自主题: Java版 - JDK 1.5 is out
Nothing fancy things. They just have some features, like generic, autoboxing,
concurrent, they should include long time ago. Something like JMX, may have
potential wonderful application.
My only disappointment is that they don't put more efforts on Applet to
make it looking more fancy and running more stable. People like web browser,
instead of Webstart client.
m******t
发帖数: 2416
39
来自主题: Java版 - What do you think about AOP?

That's exactly my impression on JDK 1.5. Java is losing its elegance
as a language - I mean, come on, varargs? it's like hijacking us
back to C...
xt
发帖数: 17532
40
来自主题: Java版 - UnsupportedClassVersionError...
Your JBuilder has a newer version of JDK.
e***g
发帖数: 158
41
JDK has built in support. search some tutorial.
l*s
发帖数: 11
42
仅从应用(非编程)的角度来说,1.5比1.4有哪些进步?
是速度更快了吗?
s**g
发帖数: 15
43
Generics(C++ template like) support.
Perl style foreach support.
Autoboxing/Unboxing
Typesafe Enums
New concurreny package
varargs accept variable-length argument lists
Static Import
c***r
发帖数: 4631
44
来自主题: Java版 - Java的中文读写问题
It works for me. Did you installed a Chinese version of JDK?


我要从一个纯文本文件file1.txt中将某些汉字逐个读出,并逐个写入文件file2.txt中
y****i
发帖数: 5690
45
来自主题: Java版 - Java on AIX
IF I can run Java but not Javac on a AIX server, what does it mean?
%javac
Can't find class java.lang.System
%java -?
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
Does it mean that only JVM is installed on the sever, but JDK? So I can only run jav
P*****f
发帖数: 2272
46
来自主题: Java版 - Java on AIX
install IBM's JDK for AIX.
you can consult their customer service
xt
发帖数: 17532
47
来自主题: Java版 - where is my j2ee.jar file

j2ee.jar comes with J2EE only. You should use the correct j2ee.jar for
Sun or IBM JDK.
x***n
发帖数: 39
48
来自主题: Java版 - java数据库读取错误,请教
LET ME EXPLAIN WHERE YOU WERE WRONG, XT.
You used CHAR(32) instead of VARCHAR(32).
Don't expect CHAR(32) to behave like variable char, ok?
It's your fault, instead of Oracle. Unfornately you used your fault to say
Oracle sucks.
This happened before to you. You had a mistake in Java Specification and then
compained "Stupid IBM JDK".
x***n
发帖数: 39
49
来自主题: Java版 - java数据库读取错误,请教
You should read carefully the definition of collation and padding.
They determine the '=' of strings.
Oracle adhears to the standard, so are other vendors, and you criticize only
Oracle for your own fault.
The same thing happened before, which was why I pointed out.
Last time, for the posts of "Stupid IBM JDK",
IBM adhears to the specification, so are other vendors, and you criticized
only
IBM for your own mistake.
I know you still feel IBM sucks (which I don't care), but your starting point
was
xt
发帖数: 17532
50
来自主题: Java版 - java数据库读取错误,请教

It is not my fault that JDBC returns a different value than their own SQL
Plus.
Sir, this is getting ridiculous. When I add a string into a CHAR(32) with DB2
then use their JDBC to retrieve it, it does NOT give me the padding. So what
*is* the standard? Please understand English!
point
IBM
IBM JDK sucks for sure. Last time I used a relatively complicated boolean
method
and used if( !complicatedMethod() ) {}. The method returned true and it went
into
the scope! Then I just changed to if( !(compl
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)