pachat | 6 Feb 11:45 2016
Picon

How integrate "angular2": "2.0.0-beta.0" as the AngularJS Seed of my projects

Thank you Simon for your reply.
It helped me to find this new link
(https://blogs.oracle.com/geertjan/entry/hello_world_with_typescript_and1) which is what I'm
going to try.

Glenn Holmer | 6 Feb 18:41 2016

hex dump

When debugging, there's an option to display variables as hex (see
screenshot), but what I'd like is a traditional hex dump: columns of hex
values on the left and characters on the right:

0000: 02 0e 20 b9 14 4c 91 13  ...H ..
0010: b9 14 a9 12 48 20 ba 13  ..u.")..
0020: 17 75 20 34 14 a0 17 b9  ........
0030: f6 ad 1c 84 91 0c c8 ad  .... ..h
0040: 38 e9 01 10 cf 20 91 13  hLl.....
0050: b1 d5 9d d4 6e 88 ca 10  .`......
0060: 6e 91 d5 88 ca 10 f7 a0  ........
0070: 91 d5 60 a5 d6 c9 5a d0  .....u`.
0080: d6 f0 fb c9 5a d0 03 4c  ...s....

Is this possible? If not, I'll file an enhancement request and ask for
votes. It would be extremely useful for byte arrays, for example.

--

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."
e-d-n | 5 Feb 21:36 2016
Picon

Desktop Icon with JavaFX Windows Packaging

When I attach a desktop icon to a JavaFX Windows desktop application the EXE file is made and everything
works fine My issue is if I try to change the desktop shortcut icon Net Beans or Ant continues to use the first
icon and will not permit me to change the icon

and YES I do a Clean and Build after the change and I remove the properties information after the change and
repeat entering the properties information 

Can some one offer what I need to fix this issue ? 
Is this an Ant Issue or a Net Beans Issue ?
This is NetBeans 8.1 with no updates as the development machine is not connected to the net

Thanks in Advance

ryannnnnnnn | 5 Feb 05:18 2016
Picon

Installed Netbeans PHP - PHP not Available?????

So I installed netbeans php  x86 8.1 for windows 8. When I select new file, PHP is not an available option in the
available categories. I have reintalled without success.

Pretty weird seeing as it's a PHP IDE, yet PHP is not an option to select.

Has anyone seen this before?

Thanks

Edson Richter | 5 Feb 21:38 2016
Picon

Junit testing WebApp project - please help!!!

Hi!

I'm facing a weird error with NB 8.1, Oracle JDK 1.8.0_72_x64 on Windows 
2008 R2 x64 and Apache Tomcat 7.0.54.

I've created a new Web App project, then created a test suite, and then 
a new test class (just a simple "Hello World" message).
I've registered the test class in the test suite, and then run.
Got the following error:

Created dir: 
C:\Users\richter\Documents\projetos\MyProject\build\test\results
C:\Users\richter\Documents\projetos\MyProject\nbproject\build-impl.xml:1389: 
The following error occurred while executing this line:
C:\Users\richter\Documents\projetos\MyProject\nbproject\build-impl.xml:556: 
The following error occurred while executing this line:
C:\Users\richter\Documents\projetos\MyProject\nbproject\build-impl.xml:529: 
unsupported element customize
BUILD FAILED (total time: 0 seconds)

I've faced the same error with a previously existing web project.

This error doesn't happen with J2SE project.

Please Help!!!

--

-- 
Atenciosamente,

Edson Carlos Ericksson Richter
(Continue reading)

Edson Richter | 5 Feb 18:54 2016
Picon

JUnit Testing a Java WebApp (JSP+Servlets+Tomcat 7)

Hi!

Dear NetBeans experts:
I need your guidance (please see my final notes at the end of this giant e-mail). I'm sure I'm doing something terrible wrong.
For many years I've been developing  a web app and used to test it outside NetBeans (mainly using Selenium).
This application has a "broker" layer that is responsible for interacting with database system using EclipseLink.
I would like to implement JUnit tests for this layer.

So, I've added a "test source folder" to the project:



After that, I've wrote a first unit class:




Now, when I run the test (Test File action context menu), I get:



If I try to debug the test file, I get it even more interesting:

Compiling 2 source files to C:\Users\richter\Documents\projetos\xxxxxxxx\build\test\classes
compile-test:
compile-test-single:
Created dir: C:\Users\richter\Documents\projetos\xxxxxxxx\build\test\results
Testsuite: http/BrokerFirstTest.java
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec

Exception in thread "main" Unable to write log file
Null Test:     Caused an ERROR
http/BrokerFirstTest.java
java.lang.ClassNotFoundException: http/BrokerFirstTest.java
    at java.lang.Class.forName0(Native Method)
    at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:190)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:840)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:575)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1179)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1030)
Caused by: java.io.FileNotFoundException: C:\Users\richter\Documents\projetos\xxxxxxxx\build\test\results\TEST-http\BrokerFirstTest.java.xml (O sistema não pode encontrar o caminho especificado)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
    at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement$DelayedFileOutputStream.write(FormatterElement.java:381)
    at java.io.OutputStream.write(OutputStream.java:116)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
    at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
    at java.lang.Class.forName(Class.java:264)


    at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
    at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
    at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
    at java.io.BufferedWriter.flush(BufferedWriter.java:254)
    at org.apache.tools.ant.util.DOMElementWriter.openElement(DOMElementWriter.java:371)
    at org.apache.tools.ant.util.DOMElementWriter.write(DOMElementWriter.java:209)
    at org.apache.tools.ant.util.DOMElementWriter.write(DOMElementWriter.java:222)
    at org.apache.tools.ant.util.DOMElementWriter.write(DOMElementWriter.java:222)
    at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:188)
    ... 4 more
Testsuite: http/BrokerFirstTest.java
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec

Testcase: http/BrokerFirstTest.java:BeforeFirstTest:    Caused an ERROR
Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

... long list of project properties ...

  <testcase classname="http/BrokerFirstTest.java" name="BeforeFirstTest" time="0.0">
    <error message="Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit." type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
</error>
  </testcase>
</testsuite>
Test http/BrokerFirstTest.java FAILED (crashed)



I've tried to use JDK7 in project standards, but made no difference.
I've tried clean and build the project. No difference also.

Why is it failing, and what to do?

-- Atenciosamente, Edson Carlos Ericksson Richter
autofocus | 5 Feb 06:29 2016
Picon
Gravatar

Ignoring file for code analysis

Hi 

I am using yii framework and when I want to see declaration of run(), I see two options as shown in pic. 
 [Image: http://i.imgur.com/H55AkUJ.png ]

I used phpstorm in the past and it had option to ignore yiilite.php for code analysis. In that I marked it as
text so I only saw one option to go to instead of two as in netbeans. 

Is there some kind of option available in netbenas also ?

Thanks

Bayless Kirtley | 5 Feb 03:33 2016
Picon
Picon

Re: Project runs in Netbeans but not from command line - how to mark this post resolvd?

Oops. Guess I forgot there is a forum attached since I never use it.

-----Original Message----- 
From: Brett Ryan
Sent: Thursday, February 04, 2016 6:32 PM
To: nbusers <at> netbeans.org
Subject: [nbusers] Re: Project runs in Netbeans but not from command line - 
how to mark this post resolvd?

> On 5 Feb 2016, at 10:59, Bayless Kirtley <bkirt <at> cox.net> wrote:
>
> Just don't reply to it again. This is a mailing list, not a forum.

Actually, it is a forum.

https://forums.netbeans.org/topic65239.html

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7357 / Virus Database: 4522/11552 - Release Date: 02/04/16 

Bayless Kirtley | 5 Feb 00:59 2016
Picon
Picon

Re: Project runs in Netbeans but not from command line - how to mark this post resolvd?

Just don't reply to it again. This is a mailing list, not a forum.

-----Original Message----- 
From: mf22066
Sent: Thursday, February 04, 2016 7:45 AM
To: nbusers <at> netbeans.org
Subject: [nbusers] Project runs in Netbeans but not from command line - how
to mark this post resolvd?

I can't thank you both enough for this help.

z1x2I got this working but I ended up updating the FileInputStream to
provide the complete path.  Not sure why but that fixed the properties
issue.

I also left the run time arguments empty in NetBeans which gave me a warning
but the build was still successful and it executes fine now.

Now if I only knew how to close this topic...????

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7357 / Virus Database: 4522/11552 - Release Date: 02/04/16 

Bayless Kirtley | 5 Feb 00:57 2016
Picon
Picon

Re: Closed Frames become White/Blank when Reopened

Without seeing what you are doing it's hard to say. But when you dispose a 
frame it can't be reopened. It is gone and you have to recall its 
constructor. By close, I assume you mean the Windows close button. If so and 
you have not specified otherwise, Netbeans defaults to dispose on close. So 
the same applies. If you intend to reopen the frame, maybe just set its 
visibility to false instead of closing then to reopen just set it visible 
again.

-----Original Message----- 
From: edgnets
Sent: Thursday, February 04, 2016 9:14 AM
To: nbusers <at> netbeans.org
Subject: [nbusers] Closed Frames become White/Blank when Reopened

Hi gatecrash360,

The piece of code you posted did not help me too much.

Looks like you have a MAIN JFrame with many buttons, when you click on 
Friends button a second JFrame is open and the MAIN JFrame become withe , is 
that way ?

Please, explain the flow and behaviors you are experiencing.

gatecrash360 wrote:
> Whenever I close a frame with the close button or by the .dispose() 
> method, if the frame is reopened, it becomes white. I have attached two 
> screenshots.
>
> I am a beginner, so go easy on me please.
>
>
>
>
> Code:
>
>
> friends.dispose();
>
>         MAIN.setVisible(true);
>                     MAIN.setSize(1024, 1024);
>
>
>
>
>

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7357 / Virus Database: 4522/11552 - Release Date: 02/04/16 

alexandrupetrosan | 4 Feb 18:40 2016
Picon

File Manager in Java

"Create an application that functions as file manager . The application must have the following functions:
review folders ,
information display files / folders in tabular form ,
name,
way
size,
creation date ,
last modification date ,
creating folders ,
option for renaming files / folders ,
option to copy files / folders full
option for moving files / folders full
option for deleting files / folders .
We advise you to use the following commands for these operations, in this order: LIST, INFO , CREATE_DIR ,
RENAME , COPY , MOVE , DELETE.
Once you enter a command in the console , the application displays the message about ordering recognized ( or
unrecognized , if the order is wrong ) and continues to collect information necessary to perform
All the operations mentioned above"


Gmane