Results 1 to 13 of 13
Thread: package java.text does not exist
- 12-18-2008, 06:48 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 2
- Rep Power
- 0
- 12-19-2008, 06:14 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You say that you need that package. So you must know what that package do. Why I'm asking is, seems to me it's just a package someone written on his/her project. Not a common one package to use all of us.
Don't you have any information about that package. At least about the project.
- 02-02-2010, 08:59 PM #3
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
*ahem*
Java 2 Platform SE v1.3.1: Package java.text
It's there, but I don't have it either. I'm tempted to wonder why, as it seems rather useful.
- 02-03-2010, 09:34 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Um, it does exist, otherwise I wouldn't be able to use (for example) SimpleDateFormat without having to add another jar to my list. And I don't have to do that. It's part of rt.jar, which is the core java classes.
I don't know what you're trying to do, but this error isn't down to mssing jars, unless you're using some non-standard version of Java.
- 02-03-2010, 09:42 AM #5
How come?
Its a part of java run time env...check ur system whether u are having jre or not?Ramya:cool:
- 02-03-2010, 02:01 PM #6
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
I definitely have the JRE 6, and I can manually add a couple of related .jar files to get it, but none of my JDEs can find it automatically which is rather annoying. I'm actually missing quite a few of the standard packages.
- 02-03-2010, 02:08 PM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
OK, then what are the version of the JRE that are failing?
Are they Sun JREs?
- 02-03-2010, 02:22 PM #8
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
Well the original JRE was the one already present on this file system. I'm having these issues at work, so I had no control over the initial setup of the computer. I installed the latest JRE from Sun and seem to be experiencing the same issue. I'd stick with just importing the proper .jar, but while the works for Eclipse the BlackBerry JDE 4.7 doesn't agree with them.
- 02-03-2010, 02:51 PM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Ohhhhh!
It's ME!
You should have said.
Everything (OK, slight exagerration) is optional in that, and also mobile/PDA specific. You'll have to look at the Blackberry site for a JDK to use when writing this stuff for one of them.
- 02-03-2010, 03:02 PM #10
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
I have the BlackBerry-specific JDE, as well as the Eclipse plug-in, but neither contain the packages in question. My issue is that I'd like them to XD. How do I allow for Java SE packages in an ME environment? (I should point out I did not know that this wasn't SE until you mentioned it) I have to do a fair bit of hex manipulation for my current program, and this wouldn't be much of a problem except that Java defaults to scientific notation, which eventually causes a NumberFormatException when I do a few conversions.
Example:
double lat = 47.2134256
String temp = Double.toString (lat * 1000000);
//Note: lat * 1000000 = 47213425.6
// Java displays this as 4.72134256E7
temp = lat.substring (0, 8);
//contents of temp: 4.721342, not the intended 47213425
temp = Integer.toHexString (Integer.parseInt (temp));
//NumberFormatException from the ParseInt, because the String is not an int
I want to use a DemicalFormat object to remove the scientific notation, but Java.Text.* cannot be resolved.Last edited by dom1000ca; 02-03-2010 at 03:10 PM.
- 02-03-2010, 03:09 PM #11
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
I don't think you can.
Some of the code inside some of these packages may well be native, in which case you are definitely stuffed. Or use code which is native. Never mind being compiled in a different environment. Yes, SE is write once run anywhere, but ME is (from what I've read) a different beast. Write once, run, fiddle a bit, run elsewhere.
- 02-03-2010, 03:11 PM #12
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Most ME (if not all ME, to be honest) doesn't have Collections, I believe.
You'd do best asking at the Blackberry forums...there must be a developer forum.
- 02-03-2010, 03:14 PM #13
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
a simple code (cldc or midp) to write a text file ouside of the application package
By sina in forum CLDC and MIDPReplies: 3Last Post: 12-12-2008, 12:12 PM -
package mj does not exist
By PzK in forum New To JavaReplies: 8Last Post: 12-03-2008, 10:30 PM -
java package for ISDN
By syedumairali in forum NetworkingReplies: 0Last Post: 01-20-2008, 08:11 PM -
Java Package help?
By Bibendum in forum New To JavaReplies: 2Last Post: 12-12-2007, 04:29 AM -
problem with viewing .java files when Visual J# 2005 Express Edition exist
By unhurt in forum New To JavaReplies: 3Last Post: 11-03-2007, 01:58 PM


LinkBack URL
About LinkBacks

Bookmarks