Instalasi Netbeans 6.8 di windows 8

untuk kebutuhan tertentu, mungkin anda membutuhkan netbeans yang bukan versi baru.

kali ini saya mencoba menginstall netbeans 6.8 di windows 8,

ternyata cukup menjengkelkan , dengan JDK 8 yang saya telah install muncul peringatan

error_netbeans

setelah mengikuti saran error tersebut saya menginstall jdk 6

namun masih gagal

lalu menginstall jdk 5 gagal juga

akhirnya menemukan link https://forums.netbeans.org/post-140036.html

di sana juga ternyata cukup lama untuk ada jawabannya,

dan jawabannya cukup simple , yaitu gunakan compability run (yang saya pakai compability ke windows 7)

dan akhirnya netbeans terinstall dengan baik

happy coding

Concentrating on Task in Hand (similar to Mylyn) in NetBeans IDE

Posted by tusharvjoshi on October 22, 2011 at 4:16 AM EDT

Concentrating on Task in Hand (similar to Mylyn) in NetBeans IDE

Often we work on fixing a bug or developing an enhancement for an open source project maintained over a period of many years and having hundreds of source code files.  usually we need a handful of 5 to 10 source files to fix the bug or to add new enhancement.  The project explorer provided by IDE’s like NetBeans IDE show us all the files at once and we may have to scroll many times to open those files.

Now comes another situation where we have to switch our focus to some other task, may be a trivial bug fix which has to go into this week’s release.  This time we have to close all those files we are working on and work on some other files for this newly arrived trivial issue.  Once this trivial issue is done, we want to go back to our usual bug fix or enhancement addition work, but now the problem is we have to figure out all the files which were open that time.

This switching of context is a part and parcel of a developer’s life.  Task-focused interface concept was introduced for such situations and is now a fairly established concept of working with large projects.  Let us see how to use this task-focused way of working in NetBeans IDE.

For this we will need a module named NBTaskFocus which is available at Java.net as an open source project.

Installing the NBTaskFocus modules

This article assumes that you are using latest stable release of NetBeans IDE and that is 7.0.1. 

1. Open the NetBeans IDE and choose the menu Tools > Plugins to open the Plugins dialog box. 
2. Click on the Settings tab and click on the Add button top add update center for NBTaskFocus, this will show an Update Center Customizer dialog box

Adding NBTaskFocus Update Center

3. In the Name field type NBTaskFocus and in the URL field type http://java.net/downloads/nbtaskfocus/nb70/updates.xml, click the Ok button which will close this dialog box

NBTaskFocus Modules available

4. Click the Available Plugins tab, four NBTaskFocus modules will be available for installation there.  Click on the checkbox on the left of the available modules to check them for installation.  You should check all the four modules available with name NBTaskFocus, click the Install button which will take you through the process of installation of the modules.  You may have to click Next on the License page and also on the warning page which says that the modules are not signed.

Opening NBTaskFocus panels

1. Make sure you open the panels provided by NBtaskFocus modules

Available Panels in NBTaskFocus

a. Task Explorer – this is a panel where Tasks will be shown as nodes
b. Task Details – this is a panel where individual open files will be shown as part of task context
c. Project Context – this panel is similar to Projects panel but with a difference that it will highlight the currently opened files and also provides two modes to visualize the Projects, viz Grayed mode and Focused mode.

Concentrating on your Task

Coming back to the example task we discussed in the start of this ariticle, we have one enhancement task to work on.  The Task Explorer panel will allow us to add Task which will be our context for working on the enhancement work.

Adding a Task

1. Right click on the Task List node of the Task Explorer panel and choose Add Task option, a Task with name Task1 will be added as a node in the panel.  A dialog box showing the name and description of this task will also be shown in the Task Editor in the editor area of NetBeans IDE.

Adding new Task

2. Let us change the name of this task to “Fix issue #29” by updating the name of the task in the Task Editor.  We can close this Task Editor when the change in name is done.

Changing Task Name

3. We can add many Tasks in the list.  Let us add one more task named “Work on Enhancement #45” by following the same procedure we did in step #1 and #2 above.
4. When we have to work on a task and we want the IDE to remember our task context, that means all the files we open to work on that task, we will activate a task.  Task can be activated by right clicking on the Task and choosing Activate Task option.

Activating Task

What is a Task Context?

When we open source files to work on them they are added to the Task Context automatically.  This can be seen in the Task Details panel as well as the Project Context panel.  In Task Details panel all the open files are shown as a list and in Project Context panel the files which are open are shown in a highlighted way.  When the files are closed by us they are automatically removed from the active Task Context.

The files opened in the editor will be shown in highlighted mode in the Project Context panel.  All other files which are not part of the task context will be shown as grayed in the Grayed Mode of the Project Context panel.  The Project Context panel has two icons at the top toolbar.  Those buttons can be used to change the mode of the Project Context panel.

Grayed Task Context
(Grayed Context shown in Project Context panel)

Focused Mode of Project Context

The Project Context panel provides a focused mode by pressing the second button in the toolbar which will show only those files which are open in a Project hierarchy like in Projects panel.  This makes us concentrate on the files we are concerned with by making all other files hidden.  This was all the destractions are gone and we do not have to scroll many times to see the files we are working on.

Focused Task Context
(Focused Context shown in Project Context panel)

Switching Tasks

When we want to work on some other task we just activate another task and all the opened files which were part of the earlier task will be closed for us and also will be remembered for us.  We can either activate another task or double click on the active task to make it deactive to work in usual way we are used to work in the IDE.

When we want to come back to the earlier task we can activate the task again and all the files which were part of the context will be automatically opened for us again.

This way of working in IDE was first introduced to the worls by Mik Kerksen through the Mylyn plugins for Eclipse IDE.  Using the NBTaskFocus project we can implement task-focused working pattern on NetBeans IDE.

 

Blog Links >>

Use NetBeans IDE 6.7 to Combine JAR Files Into a Single JAR File

 
By Robert Eckstein, August 2009  

E-mail   Print-friendly VersionPrint-friendly Version   Download–>

Articles Index

The Java Warehouse is the repository for Java and JavaFX applications submitted by developers for distribution through the Java Store to hundreds of millions of desktops worldwide. The Java Warehouse Developer Center Release Notes make clear that there is currently no way to upload applications composed of several Java Archive (JAR) files into the Java Warehouse. However, there is a workaround: Just concatenate each of the user and library classes into a single JAR file. This is very easy to do for both Java and JavaFX projects using NetBeans IDE 6.7.1.

To demonstrate how to do this, let’s use one of the sample Java projects that is included in the NetBeans IDE 6.7.1 distribution: the Mars Rover Viewer. Open the NetBeans IDE, select File > New Project, then scroll down to the Samples folder and choose Java from the Categories pane. From there, select Mars Rover Viewer in the Projects pane and click Next, as shown in Figure 1. Next, choose a suitable location for the project and click Finish.

Creating the Mars Rover Viewer Sample Project in NetBeans
Figure 1 – Creating the Mars Rover Viewer Sample Project in NetBeans.

 

We’ve chosen this project because it makes use of a popular compile-time library that is not included with the standard Java Development Kit (JDK): the Swing Application Framework. To verify that this library is being used, right-click on the project in the upper left pane and choose Properties. From there, select Libraries on the left pane to verify that the Swing Application Framework is indeed listed, as shown in Figure 2. Then click OK to close the Project Properties dialog box.

The Mars Rover Viewer Application Uses the Swing Application Framework Library
Figure 2 – The Mars Rover Viewer Application Uses the Swing Application Framework Library.

 

In order to bundle all of the libraries into a single JAR file, you will need to edit the project’s Ant file, which is called build.xml. Choose the Files tab in the Project window in the upper left, then expand the project tab if necessary to show the build.xml file. Double-click this file to edit it in the source-code editor pane and scroll down to the bottom. Now copy and paste the following text to the end, just before the final line, which is the </project> closing tag:

Your Title Here –>

<target name="package-for-store" depends="jar">        <!-- Change the value of this property to be the name of your JAR,             minus the .jar extension. It should not have spaces.             <property name="store.jar.name" value="MyJarName"/>        -->        <property name="store.jar.name" value="MarsRoverViewer"/>        <!-- don't edit below this line -->        <property name="store.dir" value="store"/>        <property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>        <echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>        <delete dir="${store.dir}"/>        <mkdir dir="${store.dir}"/>        <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">            <zipgroupfileset dir="dist" includes="*.jar"/>            <zipgroupfileset dir="dist/lib" includes="*.jar"/>            <manifest>                <attribute name="Main-Class" value="${main.class}"/>            </manifest>        </jar>        <zip destfile="${store.jar}">            <zipfileset src="${store.dir}/temp_final.jar"            excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>        </zip>        <delete file="${store.dir}/temp_final.jar"/>    </target>

 

Note that you must change the following line in the Ant code above to match your particular project.

<property name="store.jar.name" value="MarsRoverViewer"/>

The property store.jar.name specifies the name of the JAR file that will be created in the store directory — change the value to whatever name you like. After you have changed this name, save the build.xml file. Figure 3 shows the additions to the build.xml file for the sample MarsRoverViewer project relative to the closing </project> tag.

Additions to the Project's build.xml File Relative to the Closing Tag
Figure 3 – Additions to the Project’s build.xml File Relative to the Closing Tag.

 

From here, you can continue normal development, editing Java source files and compiling and running as necessary. Figure 4 shows the Mars Rover Viewer application fully built and running within the NetBeans IDE.

Running the Mars Rover Viewer Within the NetBeans IDE
Figure 4 – Running the Mars Rover Viewer Within the NetBeans IDE.

 

When you’re ready to package all of the classes and libraries into a single JAR file, switch back to the Files view in the upper left, then right-click the build.xml file. Choose Run Target, scroll down to select Other Targets, then choose package-for-store, as shown in Figure 5, to execute the target. In this case, package-for-store is the name of the Ant target that you created previously in the project build.xml file.

Executing the package-for-store Ant Target From the Files Tab Inside the NetBeans IDE
Figure 5 – Executing the package-for-store Ant Target From the Files Tab Inside the NetBeans IDE.

 

Executing this Ant target will create a directory called store inside your project directory. NetBeans and Ant will then copy all of the classes and libraries into a temporary JAR file and strip out any unwanted files, placing the final result under the JAR name that you specified earlier. NetBeans will then delete the temporary file. The results are shown in Figure 6.

The Final JAR File, Ready to Upload to the Java Warehouse
Figure 6 – The Final JAR File, Ready to Upload to the Java Warehouse.

 

That’s all there is to it — you can use this JAR file to upload to the Java Warehouse. Note that if you get an error stating that the dist/lib directory was not found, you should check that you have indeed included other libraries in your project, as this is the location where their JAR files will be stored.

If you’d like to verify that the JAR file contains the appropriate libraries, you can use one of three methods:

  • Use the command-line tool: jar tvf (filename).
  • Use a number of OS-based tools to inspect the JAR files (or ZIP files, if you change the extension).
  • Double-click on the JAR file to be sure that the Java runtime can execute it.

For More Information

 

 

Rate This Article

 

Discussion

We welcome your participation in our community. Please keep your comments civil and on point. You can optionally provide your email address to be notified of replies—your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.

tuning konfigurasi netbeans

buka netbeans.conf di <netbeans_home>/etc/netbeans.conf

ganti opsi netbeans_detault_options menjadi

netbeans_default_options=”-J-Xms256m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled”

hanya anda harus berhati2 dengan opsi-J-Xmx, jangan sampai melampaui max memory anda

have fun …

thesisku sayang.. thesisku.. malang.. surabaya..

Kenangan

Owh Thesisku…

semangat!!

 

<?php
class RekamMedis extends ModuleClass {
        function _up(){

 

        }
        function _down(){
        }
}
/*
End Of File rekammedis.php
Location: service/modules
*/

30 Jun 10 15:19:21 org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

 

hahaha sekedar catatan untuk diingat jika saya lulus thesis..

semoga..

Mudah Menggunakan Database JavaDB dengan Netbeans 6.8

Pada Kesempatan ini akan ditunjukkan cara mudah menggunakan database di dalam netbeans dengan javaDB, dimana kelebihan utamanya anda tidak harus bercapek2 menginstall database di dalam computer anda sendiri. Artikel ini dicoba pada java 1.6 dan netbeans 6.8

Create Database dan Menyalakan Server Java DB :

Buka window->Services :Lalu Klik kanan pada JavaDB dan Pilih Create Table..

Media_httpblogitsacid_abdey

Lalu Isikan Field yang ditentukan..

Media_httpblogitsacid_fwcmw
Media_httpblogitsacid_cgrzz

Lantas Klik OK…dan Database Akan Segera Dibuat :

Media_httpblogitsacid_kyrbb

Setelah Database Berhasil dibuat, Maka di Window Services Akan terlihat Baris untuk melakukan koneksi ke Database tersebut. Klik Kanan dan Pilih Connect

Media_httpblogitsacid_qobnc

Seletah berhasil connect, maka anda sudah terbuhung dengan database, langkah kita selanjutnya sekarang adalah membuat table..

Media_httpblogitsacid_djupb
Media_httpblogitsacid_fmjvb
Media_httpblogitsacid_apskt
Media_httpblogitsacid_rcihk

Setelah table berhasil dibuat maka anda dapat melalukan perintah sql pada table tersebut.. tapi ingat selalu menyertakan schema di depan perintahnya. Missal : SELECT * FROM app.mahasiswa; (karena table mahasiswa ada di schema app)

Media_httpblogitsacid_mggtx

Ok sekian, semoga berguna bagi anda..