Home » 2010 » 2010 » März

Java Programme an Taskleiste anheften – java-forum.org

Hallo, ich bin verwundert, dass sich zu meiner Frage nichts in der Suche finden lässt. Ich würde gerne mein Notizprogramm an die Taskleiste von.

Nick Boldt: HOWTO: Build Plugin & Feature Projects, Then Run Their Unit Tests w/ Tycho :: GEF Example

Note that the instructions below are for Linux (or MacOSX). On Windows, your YMMV, but the process is the same.

1. Check out the entire source tree of your project from CVS, SVN, or Git into ~/build.

2. If needed, move plugins, features & test plugins into:

~/build/plugins/
~/build/features/
~/build/tests/

(Test features should go into features/ folder too.)

3. Install scala from http://www.scala-lang.org/downloads

4. Fetch genpom.scala and parent-pom.xml; save in ~/build or equivalent.

5. Tweak parent-pom.xml to suit your needs or use as-is.

6. Run this to generate pom.xml files for plugins, features, and tests:

cd ~/build/plugins/; scala ../genpom.scala
cd ~/build/features/; scala ../genpom.scala
cd ~/build/tests/; scala ../genpom.scala

7. Download Maven 3 from http://www.apache.org/dyn/closer.cgi?path=/maven/binaries/apache-maven-3.0-alpha-7-bin.tar.gz

8. Install Maven 3

sudo su; cd /opt; tar xvzf apache-maven-3.0-alpha-7-bin.tar.gz
ln -s apache-maven-3.0-alpha-7 maven3

9. For convenience, alias mvn3 to the new maven:

alias mvn3='/opt/maven3/bin/mvn 2>&1 clean install | tee buildlog.latest.txt'

10. Build the plugins, features, and finally tests:

cd ~/build/plugins/; mvn3
cd ~/build/features/; mvn3
cd ~/build/tests/; mvn3

Look in ~/build/plugins/org.eclipse.*/target/ for generated jars.
Look in ~/.m2/repository/org/eclipse/* for published jars.


To automate steps 6 and 10, you can run this script in the ~/build/ folder:

#!/bin/bash
for f in plugins/ features/ tests/; do \
  cd $f; scala ../genpom.scala; \
  /opt/maven3/bin/mvn 2>&1 clean install | tee buildlog.latest.txt; \
  cd ..; \
done

(The above blog is also posted here.)

3 Funde JAVA/Agent – Viren und andere Sicherheitsrisiken – Avira

[FUND] Enthält Erkennungsmuster des Java-Virus JAVA/Agent.AAC [HINWEIS] Eine Sicherungskopie wurde unter dem Namen 4c25a35b.qua erstellt ( QUARANTÄNE ) Beginne mit der Suche in ‘D:\’ Beginne mit der Suche in ‘E:\’ …

neue Java-Version – AntiVir Premium und Avira Premium Security

Wollte mir Java 6 Update 19 runterladen von der Java-Seite. Dabei habe ich aber das Development Kit erwischt. So wurde nicht nur die JRE aktualisiert, sondern eben auch das JDK und Java DB installiert. Kann ich die Anwedungen, …

Brian Fitzpatrick: More EclipseCon 2010 Thoughts

Hi all…

I try to write up a summary each year I go to EclipseCon documenting what talks I went to, what I thought was interesting, etc.

I’ve done that here this year on a JBoss Wiki page: https://community.jboss.org/docs/DOC-15091

Ignore it if you don’t find it useful, but I thought it was a great conference this year. :)

–Fitz

IMAPSize – Backup Tool für IMAP-Postfächer (Webdomination)

Vor einiger Zeit hatte ich hier das Java Tool MailCarbon vorgestellt, mit dessen Hilfe IMAP E-Mail Konten auf einen anderen Server kopiert oder verschoben werden können. Das ist besonders bei einem Wechsel des Anbieters bzw. Mail-Servers von Vorteil, eignet sich aber leider weniger um ein Backup der Postfächer anzulegen. Die Software IMAPSize hilft nicht nur beim [...] Post from: Webdomination…

Windows XP Java-Installation

Hi, ich wollte mein Java updaten. Habe die -alte Version deinstalliert -mit JavaRa die Reste entfernt – update jre-6u19 geladen und installiert nun.

Martin Fluegge: This is my legacy …

…mode. Or more precisely it’s CDO’s. Finally, as Eike announced on EclipseCon, we managed to finished this new feature.
“Cool” is what comes into your mind while reading this lines? And while you have back in mind that CDO recently released the offline mode, euphoria let’s you shiver anticipation about another fancy feature in CDO? But then a wreckful question destroys all your happiness and you ask yourself: “What is legacy in the context of CDO?”
Well, if so, let me get you out of this mess and explain what the legacy mode is about.

If you remember CDO’s getting started you probably had noticed that you had to convert your model to CDO. This step adapts your genmodel and changes some generation relevant settings. The most important of these changes is that instead of directly inheriting from EObject your model classes will extend CDOObject, or to be more accurate – CDOObjectImpl. This conversion results into the flexibility and scalability CDO offers. If you like to know more about the internals read the CDO wiki page. Just to sum it up – after the conversion your model is CDO-ified, or in other words: CDO Native.

Well, although this conversion gives you full access to CDO, like lazy loading and unloading, some don’t like to or just can’t convert their models. To be honest, when I started developing Dawn I also found this conversion tedious, not understanding the real meaning of it. But in my defence – at this time I did not even know what EMF is about ;) And because this was also the time Eike still proclaimed that there is no need for an offline mode in CDO I think we both are even now. ;)

But back to the topic. What if you can’t use a native CDO model? For example if you only have the generated binaries. Then the legacy mode comes to your support. When legacy support is activated it is now possible to use pure EMF objects (legacy objects in the context of CDO) with the CDO repository. This makes it now easy to share your model even if it is not converted. But keep in mind that the legacy approach leaves you with the given disadvantages concerning scalability. So if you need the maximum of scalability and performance on huge models, you should use the native mode. But for smaller models legacy performs well. It is even possible to store the objects in legacy, than convert your model and proceed with a more scalable und flexible resource.

Legacy is not only limited to generated classes. In fact you can use it with DynamicEObjects if you want to. Again, it is recommended to use native objects. And in the dynamic cases it makes even more sense be converting the model is done easily using CDOUtil.prepareDynamicEPackage(dynamicMapEPackage), because you do not need to regenerated your classes. But if you want to use DynamicEObjects on CDO, for what reason ever, you are free to do so.

That’s it? Not by a long shot. With the legacy mode, if required, legacy and native objects can be used combined. If your native model needs to reference a model which cannot be converted or vice versa this is now possible with CDO.

You might wonder how legacy performs compared to the native approach. The Legacy Mode is slower, in most cases, because it is just a bridge between pure EMF and CDO. But the loss of performance is not that big and only applies to the client side. Legacy mode is completely transparent to the server. This makes it possible to convert legacy to native and vice versa as mentioned above. Have a look at the picture below. The graph shows some simple performance measurements between native and legacy. You can see that the difference between native and legacy it not that big.

One question remains. How to use this new fancy feature? In an early design legacy was adapted automatically to CDO. But this has a major drawback. People could forget converting there models to CDO. This fact alone would not be that troublesome. But imagine now that this user runs into an error with a stack trace which does not point directly to legacy, even if it was the root of the problem. In this case it could be hard work to hunt it down. That’s why we made legacy support configurable. And by default it is turned off. This leaves legacy to the once who are aware of it.
To switch legacy support on or off you can refer to static methods in CDOUtil. This will influence the setting for newly created CDOViews. Note, that these methods are only setting the default behaviour for the current thread. So you must ensure that you set the flag for the right thread.

 boolean CDOUtil.isLegacyModeDefault()
 void CDOUtil.setLegacyModeDefault(boolean on)

The snippet below shows how legacy can be enabled or disabled.

CDOSession session = …;
CDOTransaction transaction1 = session.openTransaction(); //this transaction is opened with no legacy support which is the default

CDOUtil.setLegacyModeDefault(true);
CDOTransaction transaction2 = session.openTransaction(); //this transaction is opened with legacy support

CDOUtil.setLegacyModeDefault(false);
CDOTransaction transaction3 = session.openTransaction(); //this transaction is opened with no legacy support again

Additionally you can ask your view whether legacy is enabled for it by using the following method.

CDOView view = …;
boolean isLegacy = view.isLegacyModeEnabled();

Last but not least I would like to thank our sponsor who made it possible to spend a major effort on the development of the legacy mode.

Now, feel free to test it and give us a feedback if you like ;)

SAP Java Developer – SAP Development – Schweiz Jobs

JoinVision.com sucht SAP Java Developer – SAP Development für die Schweiz BROMsolutions AG sucht SAP Java Developer – SAP Development in Zürich.

Chetan Kumar Kotha: Eclipse Day India 2010

  EclipseCon 2010 is wrapped up. Thanks to the community I followed the happenings of EclipseCon on planeteclipse.org and twitter – almost like live updates. The Indian Eclipse community is gearing up for a gathering in similar proportions (in the community energy level of course.) Eclipse Day India 2010 is here – April 23rd. What I like most about it is the simplicity. Just 3 kinds of talks: Lightning, Short, and Long.


  Now that the tentative agenda is out and its difficult to not choose to attend one talk over another considering the submissions. I have made my list of “favorite talks to attend.” The key note is interesting. It is called “The Eclipse Way” by Dani Megert. More details about the key note here. I want to start off with lightning talks. Especially “Top 10 mistakes in Eclipse Plug-in development” by Prakash G R and “Creating a splash screen” by Jagadeesh Panchakshari. Behold! The latter lightning talk is more than its name. Most of us (or atleast I) think of an Image when it comes to a ’splash screen’ but Jagadeesh has some surprises in store for us. Moving on to Short talks. I want to check out “Contributing to Eclipse and Community” by Ayushman Jain, “RAP” by Ankur Sharma, “Top 3 SWT Exceptions” by Lakshmi. Finally, finish up with “Patterns in Eclipse” by Madhu Samuel , “OSGi Tutorial” by Prakash G R. Hope the talks are scheduled in such a way that I don’t miss any of my favorites :)


  The final agenda will be published here – keep watching.

Ian Skerrett: EclipseCon 2010 Demographics

Each year when people register for EclipseCon we ask a small number of questions to better understand who is attending. As is the tradition, I publish the data so everyone can get a feel for who was at EclipseCon.

For EclipseCon 2010, the top line summary is that the attendee profile continues to be very technical and very experienced with Eclipse. A common misconception is the EclipseCon is only for committers and people building Eclipse based products, however 30% are using Eclipse as a tool platform for internal IT development and 19% are building internal applications based on Eclipse. Another take away is that the attendee profile is very very similar to 2009.

Year of Experience Using Eclipse

73% of attendees have been working with Eclipse 3 or more years. As you can imagine this is a very experienced crowd at EclipseCon.   Frankly as Eclipse is more established I am not sure how useful this question becomes.  Maybe we should ask “how long have you been using Equinox or EMF”?

Hard core Technical

Once again EclipseCon demonstrates it is a conference for hard core technical people. 67% considered themselves a developer or architect, and if you include development managers that numbers is 77%.  Next year I think I will start a club for us marketing types; maybe we should even get special shirts. :-)

A Diverse Community

Often people will say to me EclipseCon is for people working on the Eclipse projects, meaning the attendees are committers or employees of member companies. In fact, only 33% said their companies create commercial Eclipse based products (typical of companies working on Eclipse project). 30% use Eclipse as the tool to build internal applications and 19% use Eclipse as the platform for their internal application. There continues to be a lot of enterprise developers attending EclipseCon.

Popular Projects

The most popular projects being used by EclipseCon attendees continue to be JDT, EMF, RCP, Equinox, Mylyn, etc. We didn’t include a list of all the Eclipse projects but I don’t think this ranking should surprise anyone.

Thanks to everyone that completed the registration questions.   See you next year at EclipseCon 2011!

MySQL – Anzahl Tabellen heraus finden – java-forum.org

Hallooo…ich hab ein klitzekleines Problem mit meiner Datenbank. Wie finde ich heraus wie viele Tabellen die Datenbank hat mit der ich grad verbunden.

Java 6 Update 19 erschienen – java-forum.org

Alt Gestern, 17:40. L-ectron-X. Java-Forum Team. Site Operator. Benutzerbild von L-ectron-X. Registriert seit: 24.04.2004. Beiträge: 9.731. Abgegebene Danke: 2. Erhielt 40 Danke für 40 Beiträge. Standard Java 6 Update 19 erschienen …

Java Probleme – HTC Touch Diamond 2 – Windows Mobile Forum

Hallo, mit meinem Touch Diamond 2, habe ich Probleme Java Anwendungen im Internet zu öffnen. Als Browser benutze ich den Opera mit WM6.5. Hat jemand.

Security Alerts (Der Schockwellenreiter)

So kurz vor Ostern kommen auf einmal noch ein paar Sicherheits-Updates und -Warnungen hereingeschneit: Sun hat die neue Version 19 der Java Laufzeitumgebung Java 6 veröffentlicht, die zahlreiche sicherheitskritische Fehler beseitigt. Die JVM für Windows, Solaris und Linux kann wie immer hier geladen werden. Die Mozilla-Entwickler haben Updates für den Firefox 3.5 auf 3.5.9 und Firefox 3.0 [...]

Jan Kohnlein: Xtext For Your Ecore Models

The new M6 release of Xtext ships with a new component: The Ecore2Xtext Wizard.

Why should you use the
Ecore2Xtext Wizard?

  • You want your models to be in a syntax that humans can not only read but also understand.
  • You want a model editor that offers all the convenience of a modern IDE.
  • You already have an Ecore model but don’t know how to start with Xtext.
  • Your Ecore model is huge and you want a quick start with Xtext. You can easily fine-tune the syntax later on.

How do you use it?

  1. Start the wizard by choosing New -> Xtext -> Xtext Project From Existing Ecore Models.
  2. Select the EMF generator models1 from your workspace for which you want a textual syntax and choose your root element’s type.
  3. Fill in all the language metadata on the second page of the wizard. Remember the file extension.
  4. Click Finish and wait until Xtext has generated the two common Xtext plug-ins and the Xtext grammar for your language.
  5. Run the MWE2 workflow located in the same directory as the grammar. Now Xtext generates the language infrastructure (parser, editor, formatter etc) .
  6. Spawn a new Eclipse runtime workbench, create a sample Java Project, and open a new model file with the file extension you have chosen in the wizard. Play around and have fun with your new textual model editor.

1 the genmodel is needed because we need the fully qualified names of the generated Java classes as well as the location of the Ecore file. The genmodel offers both of them.

Watch this short screencast to see it in action:

What is the generated syntax like?

Names of EClasses and EStructuralFeatures become keywords, containment is marked with curly braces, elements in lists are separated by commas, etc… Here’s an example of an entity model in the generated language:

What if it doesn’t work?

The grammar is the primary artifact of every Xtext language, but there are a couple of further services you might have to configure:

  • A IQualifiedNameProvider to define how the fully qualified name of an element is derived.
  • A IScopeProvider to define which elements are candidates for a cross reference.

Please consult the Xtext documentation for more information.

Another geekish meta-confusing example

All right geeks, Ecore itself is defined in Ecore, so let’s generate a textual syntax for Ecore and see how Ecore looks in that syntax! Only two adaptions of the generated code where necessary to get this editor:

(The ‘^’ chars are automatically added by Xtext to distinguish identifiers from keywords, which of course collide a lot in this example) It is certainly not as complete as EMFatic, and it has a quite verbose syntax, but it could be the starting point for a nice textual Ecore editor.

Firefox-Entwickler stopfen altes CSS-Leck

Eine schon seit 2000 bekannte Möglichkeit, herauszufinden, welche Webseiten ein Nutzer besucht hat, wollen die Entwickler des Firefox-Browsers demnächst stopfen. Auch andere Browser sind von diesem “CSS History Hack” betroffen.

Irrungen und Wirrungen um OpenSolaris

Ein Aufschrei geht momentan durch die Community. Diverse englisch-sprachige Newsportale berichten, Oracle würde OpenSolaris durch eine Lizenzänderung den Gar ausmachen. The Inquirer titelt beispielsweise: “Oracle will cut Sun’s open …

Spiele-Grafikkarte für bis zu sechs Monitore – Heise Newsticker

Spiele-Grafikkarte für bis zu sechs Monitore
Heise Newsticker
Java Standard Edition (Java SE / JDK) Standardversion des Java Development Kits (JDK) oder auch Software Development Kits (SDK) zum Programmieren von

und weitere »

Ungewohnt (/var/log)

Bei Golem: Oracle hat das 19. Update für Java 6 veröffentlicht. Klingt schon schräg diese Kombination. Eingetragen unter:Aus der Welt

Brian Fitzpatrick: EclipseCon 2010 – Some thoughts

Hi all…

Yes, it’s been a long while (again) since I had an opportunity to write here. But after such a great EclipseCon 2010 experience, I feel it would be a disservice to not talk about it. :)

After joining Red Hat in the middle of 2009, I entered the maelstrom of tooling development in the exciting, chaotic world of Red Hat and JBoss. Leaving Sybase was tough, but it was time to do something different after nearly 13 years at New Era and Sybase. But it was a shock to the system to go from the slow and steady of Sybase to the full speed ahead of Red Hat.

That said, I’ve had little time to spend on DTP at Eclipse. I feel bad about this. But I’m trying to help as much as I can, just like Brian and Hemant from IBM and Linda from Actuate. None of us can spend as much time as we might like on this great project.

So I went to EclipseCon 2010 with a bit of trepidation. How would DTP be received? We really don’t have much to show in our Helios release beyond a few fixes here and there.

We had one talk for DTP this year – DTP in the Real World. I spoke about our improved RCP support in DTP and provided a plea for more community involvement. And Ruth Soliani, from the Eldorado Research Institute in Brazil, who spoke about how they used DTP in their MotoDev Development Studio product (with Motorola) to connect to a SQLite database on an Android device. Pretty darn cool stuff there and they were very kind to say nice things about the DTP team. :)

On the first night of the conference, we had a DTP Birds of a Feather (BoF) that was very encouraging. We met Ray and Chris from Ingres who will be helping us out from that side of the DBMS world where they can. We met Shenxue Zhou from Oracle, who we’ve been trying to help out as we can as well.

So the show of community support was awesome. At EclipseCon 2009, we had a very low attendance to DTP talks and nobody attended the BoF. This year we had 30-40 people attend the DTP talk and 3 people (beyond the DTP PMC) show up, plus one guy who was hoping DTP meant “Desktop Publishing” (Sorry about that!). We had great conversations with Ruth’s team, the guys from Ingres, and Shengxoe from Oracle.

Now I’m actually hopeful DTP will survive. And that’s a good thing!

A big thanks go to Oisin Hurley and Don Smith who put on a terrific conference this year. Every talk I went to had a good number of people attending and a few were standing room only (like Mik Kiersten’s talk about Mylyn!). Not to mention the awesome keynotes and the giant moon robots that looked like something out of The Matrix. :)

Thanks to everyone who attended and especially the DTP community who’s coming back to life!

–Fitz

Ab 1. April gelten neue Regeln zum Bonitäts-Scoring – Heise Newsticker

Ab 1. April gelten neue Regeln zum Bonitäts-Scoring
Heise Newsticker
Java Standard Edition (Java SE / JDK) Standardversion des Java Development Kits (JDK) oder auch Software Development Kits (SDK) zum Programmieren von

und weitere »

Router-Distribution Vyatta 6.0 mit Verbesserungen bei IPv6 und Firewall

Vyatta hat Version 6 seiner freien Router- und Firewall-Distribution veröffentlicht. Die neue Remote-Access-API soll die Verwaltung in großen Enterprise-Umgebungen vereinfachen.

Oracle schließt 27 Sicherheitslücken in Java – ZDNet.de

Oracle schließt 27 Sicherheitslücken in Java
ZDNet.de
Schwachstellen in der Java-Laufzeitumgebung und einigen Komponenten können zu einem Pufferüberlauf führen. Sie gelten als kritisch und ermöglichen Zugriffe
Java 6 Update 19 schließt 26 SicherheitslückenHeise Newsticker
Mehr als 20 Sicherheitslücken in Java beseitigtPC-Welt
Java-Update beseitigt 27 SicherheitslückenGolem.de
Onlinekosten.de -ICT Kommunikation -inside-channels.ch
Alle 11 Artikel »

Oracle schließt 27 Sicherheitslücken in Java (ZDNet)

Oracle hat ein Sicherheitsupdate für seine Java Standard Edition 6 (Java SE) und Java for Business veröffentlicht, mit dem der Konzern insgesamt 27 Sicherheitslücken schließt. Zudem verbessert die überarbeitete Version nach Unternehmensangaben die Stabilität der Software und behebt kleinere, nicht sicherheitsrelevante Fehler.