Problems with Emacs/JDE
whew, I just started the move from windows to Linux and try to work like a true man
;-) using
xemacs and JDE.
well the first steps were o.k., I even mastered installing the JDK 1.2 with mySQL JDBC
driver,
but now I have some configuration problems with xemacs and JDE I cannot solve. would
be great if
someone is able to share his or her experiences. The problems are in detail:
(1) Problems with automatical identation
(2) Abbreviations with JDE
(3) "Find braces"
ad 1)
when I have some identation like:
for (int i=1; (i<10); i++) {
System.out.println("" + i); // when I press enter here I want the next line to
start
// automatically here and not
// here
}
is this description clear?
ad 2)
reading the JDE help file, there should be the possibility of abbreviations, so when I
type:
pub JDE should finish this to public or the like
I enabled the function in JDE config like described in the help, but the abbrev.
function simpy
does not work. any idea?
ad 3)
A really important function for me is to find the fitting braces, e.g. in the upper
code
example, when the cursor is on the last } there should be a function to show/jump to
the upper {
brace.
so these are really lots of questions.
probably some of you are so kind and could help me yet beeing a Linux dummy...
thanx in advance
Alex
Dipl.Ing. Alexander Schatten
Email: [EMAIL PROTECTED]
URL: http://www.bigfoot.com/~AlexanderSchatten
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
I have to agree. The main problem Sun seems to have is that are working on new APIs while never fixing real design problems because they want to maintain "backward compatibility". Just take a look at the 1.2 (oops it is called Java 2 now) release, it still "supports" the old AWT 1.0 event model (if you have not experienced the sheer joy of early AWT programming you might live 10 years longer). Now bad graphics is one thing, but I am surprised there has not been a larger outcry over the implementation of exec() in Java. I requested that Sun "enhance" (the term they use for fixing a basic design flaw) Java to support exec() from a given directory over a year ago (see Javasoft RFE (BUG) number 4156278) and they just posted a responce about a week ago! This bug has over 100 "bug votes" and is now one of the top 10 most requested RFEs, and yet it took they an entire year to even comment on it. Check out http://developer.javasoft.com/developer/bugParade/bugs/4156278.html (you will need to be a registered javasoft developer to go to this URL) To be honest, I am thinking about giving up on Sun Java and using IBM for Windows and Kaffe for Linux. That does not fix the borken API problem but at least a developer has a fighting chance with the free Java implementations out there. later Mo DeJong Frustrated Java Developer On Sat, 10 Jul 1999, Brad Pepers wrote: > Rachit Siamwalla wrote: > > > > > Agreed, Swing JFC is one of the best API design ever. Java 2D/ DnD is excellent > > > and JMF appears to be well though out. I await Java Sound with baited breath. > > > > > > > I don't 100% agree with the comment about JFC. Some things in JFC are > > well written like the JTree and the JTable and the Text components. But > > the rest seem slapped together and hard to customize without creating > > your own components. Another thing is it is scary how slow they seem to > > fix problems. I heard from someone who went to JavaOne last year that > > they have 10 people devoted to Swing. How long has JFC came out? A lot > > of repeatable problems have not been fixed. This is amazingly bad. What > > have they been doing? The interface hasn't changed significantly. All > > there is to do is fix thier bugs. Oh well... > > I can't even go that far since JTable has its own problems. Like you > mentioned its hard to customize without creating your own component and > its also almost useless for data entry. In general the whole thing is > missing so much basical functionality that you end up spending all your > time subclassing their components. Little things like the simplest of > data validation (limiting the number of characters entered for instance) > require you to write code when it should be basic functionality of the > component. > > I think they've had to spend *way* too much time on getting the whole > switchable look and feel working and in doing so have left out basic > functionality. Its also so complicated its hard to subclass and get > control of the behaviour when you need to (and I also suspect this is > the source of the bugs and why they can't fix them). They should have > just worked on a light weight set of components with a rich set of > functionality and a nice look and feel. AWT is bad because it relies > on the underlying graphics lib which creates subtle differences in > functionality between operating systems but JFC seems to be just as bad > by trying to cater to everyone they have made a system not very good > for anyone. > > If its not obvious, I've been working with Swing for a while now and had > nothing but frustration. 8^) > > Rant mode off. > > Are there other options out there? > > -- > Brad Pepers > Linux Canada Inc.Home of Linux products in Canada! > http://www.linuxcanada.com Proud supporter of Cyclades, Red > [EMAIL PROTECTED] Hat, and Caldera. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to detect a "blank" line.
It seems that s[1] somehow misses the s1.equals("") comparison. The
thing to check is what and how many characters s[1] contains. Add
something like:
int nLength = s[1].length()
System.out.println("Length of s[1]: " + nLength);
for (int i = 0; i < nLength; i++)
{
System.out.println("s[1] character " + i + ": " + (int)
s[1].charAt(i));
}
R MUTHUSWAMY wrote:
>
> Hi Matthias,
>
> I changed that code and included the s1.equals("") and i found out
> that it is working that blank line is send as a blank line and other lines
> are read as a normal line.The output is shown below.
>
> s[0]=this is a test file which can
> s[1]=
> s[2]=be deleted when not needed.
>
> bye,
> MUTHU.
>
> On Fri, 9 Jul 1999, Matthias Pfisterer wrote:
>
> > No. From the Java documentation (java.io.DataInput, readLine()):
> >
> > > If the character '\n' is encountered, it is discarded and reading
> > > ceases. If the character '\r' is encountered, it is discarded and, if the
>following byte converts to the character
> > > '\n', then that is discarded also; reading then ceases. If end of file is
>encountered before either of the characters
> > > '\n' and '\r' is encountered, reading ceases. Once reading has ceased, a
>String is returned that contains all the
> > > characters read and not discarded, taken in order.
> >
> > By the way, I've tested the programm with my proposal.
> >
> > Matthias Pfisterer
> >
> >
> >
> > Larry Gates wrote:
> > >
> > > >Date: Thu, 08 Jul 1999 12:48:49 +0200
> > > >From: Matthias Pfisterer <[EMAIL PROTECTED]>
> > > >
> > > >Hi,
> > > >
> > > >In your java program, exchange the line
> > > > if (s1.charAt(0)!='#') { // not a comment or NULL line
> > > >with
> > > > if (s1.equals("") || s1.charAt(0)!='#') { // not a comment or NULL line
> > >
> > > or it could be a return character? Then, you would need
> > >
> > > if (s1.equals("\n") || s1.charAt(0)!='#') { // not a comment or NULL line
> > >
> > > -Larry Gates
> > >
> > > --
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
One more doubt
Hi all,
I have a small doubt regarding JDK1.2.
Here is a small piece of code that i compiled using both
jdk1.1.6 and jdk 1.2. In jdk1.1.6 it compiles peacefully but
does not compile using JDK1.2. The error it gives is :-
var.java:13: Can't make a static reference to nonstatic variable
x in class B.
float bx=B.x;
^
var.java:14: Can't make a static reference to nonstatic variable x in
class A.
Object ax=A.x;
^
The code is:
class A {
Object x;
}
class B extends A {
float x;
}
class var extends B {
char x;
void m() {
char cx=x;
float bx=B.x;
Object ax=A.x;
}
}
Note this example is taken straight from the Java Language specification
book-1.0. Please can somebody help me in clearing my doubt ...
regards,
Raj
PS: Please do not send a group mail, u can send me a mail to this
address: [EMAIL PROTECTED] Thanx to them who replied to my previous
mail. Thanx a lot...
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
I'd have to go along with Brad on this, after using the Swing text API. I ended up having to subclass lots of stuff, while reading the java sources to find out what the superclasses were up to. Nick Brad Pepers wrote: > Rachit Siamwalla wrote: > > > > > Agreed, Swing JFC is one of the best API design ever. Java 2D/ DnD is excellent > > > and JMF appears to be well though out. I await Java Sound with baited breath. > > > > > > > I don't 100% agree with the comment about JFC. Some things in JFC are > > well written like the JTree and the JTable and the Text components. But > > the rest seem slapped together and hard to customize without creating > > your own components. Another thing is it is scary how slow they seem to > > fix problems. I heard from someone who went to JavaOne last year that > > they have 10 people devoted to Swing. How long has JFC came out? A lot > > of repeatable problems have not been fixed. This is amazingly bad. What > > have they been doing? The interface hasn't changed significantly. All > > there is to do is fix thier bugs. Oh well... > > I can't even go that far since JTable has its own problems. Like you > mentioned its hard to customize without creating your own component and > its also almost useless for data entry. In general the whole thing is > missing so much basical functionality that you end up spending all your > time subclassing their components. Little things like the simplest of > data validation (limiting the number of characters entered for instance) > require you to write code when it should be basic functionality of the > component. > > I think they've had to spend *way* too much time on getting the whole > switchable look and feel working and in doing so have left out basic > functionality. Its also so complicated its hard to subclass and get > control of the behaviour when you need to (and I also suspect this is > the source of the bugs and why they can't fix them). They should have > just worked on a light weight set of components with a rich set of > functionality and a nice look and feel. AWT is bad because it relies > on the underlying graphics lib which creates subtle differences in > functionality between operating systems but JFC seems to be just as bad > by trying to cater to everyone they have made a system not very good > for anyone. > > If its not obvious, I've been working with Swing for a while now and had > nothing but frustration. 8^) > > Rant mode off. > > Are there other options out there? > > -- > Brad Pepers > Linux Canada Inc.Home of Linux products in Canada! > http://www.linuxcanada.com Proud supporter of Cyclades, Red > [EMAIL PROTECTED] Hat, and Caldera. > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
TYA
I'm trying to install TYA again. Red Hat Linux 5.2 JDK 1.1.7 v3 (works fine) TYA 1.3 v2 Installed TYA via configure, make, make install, which put libtya.so in /usr/local/lib. Modified /etc/ld.so.conf to include /usr/local/lib, output of ldconfig -v shows that libtya.so is found. Ran Sy from the TYA demo dir, which runs a java program with tya specified as the java compiler. It's output: This line should be a (c) line ^^^ (else TYA is not loaded). tya Linux I know the linker is both looking for and finding libtya.so because if I remove it from the /usr/local/lib directory without running ldconfig again, I also get this message: libtya.so: cannot open shared object file: No such file or directory (libtya.so) Warning: JIT compiler "tya" not found. Will use interpreter. ... Putting libtya.so back makes this error message go away. This leads me to believe that the problem is in the JDK. Apparently it loads libtya.so (because I get the linker error if it's not there), but Sy won't report that its using TYA. Since Sy comes with TYA, I assume it would have the final say it TYA is loaded. Any suggestions? -- Adam Carheden [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Problems with Emacs/JDE
On 10-Jul-99 Alexander Schatten wrote:
> ad 1)
> when I have some identation like:
> for (int i=1; (i<10); i++) {
> System.out.println("" + i); // when I press enter here I want the next
> line to start
> // automatically here and not
> // here
> }
I think you have to press tab after enter to make the line start there.
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...
+-+
|. * . |
| .__ . . |
|oq |po _ _|
| / #==>>>==#,-' (_)\ |
| | ,-|~\\ ///_ ,() ,_} |
| | |/|~]]] /// ,-~' .,~ / \| . |
| |\_|_|_\_\~~~~' \ (/|. |
| ./~ \___/ [m] \ \__// |
| _bo..__ // `-,.~~ |
| _-~ 0o.__( . |
| \ o . |
| . (_)00 |
|. \~~~*,,,* ~00 |
|~0 . |
| ~~~---~~ |
| .*|
+-+
| An e-mail network of Space Cruiser Yamato and |
| StarBlazers Fans |
+-+
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: TYA
On 10-Jul-99 Adam Carheden wrote: [TYA] > Any suggestions? I had the same problem and asked the author for help. He told me to put libtya.so in /jre/lib/i386/ and now tya works perfectly. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
