Netbeans not opening window when running [closed] - java

Closed. This question is not written in English. It is not currently accepting answers.
Stack Overflow is an English-only site. The author must be able to communicate in English to understand and engage with any comments and/or answers their question receives. Don't translate this post for the author; machine translations can be inaccurate, and even human translations can alter the intended meaning of the post.
Closed 10 hours ago.
Improve this question
Aparece error parsing file, ao manter o mouse parado na exclamação do arquivos. Segue a imagem:
Foi tentado mudar o caminho no config do netbeans para o jdk

Related

I have problem with java.lang.reflect.InvocationTargetException [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
it's the error I'm not good at programming but I try to learn. I am learning how to use javaFx. In this case I want to implement 4 operations: add, subtract, multiply and divide. When I was using only one it worked for me I am new to the Starck overflow community. I always check when I have doubts. But I did not find a solution to my problem. It would be very helpful if you support me.
If you like me to share the folder. They explain to me how it would be very helpful.
Also my english's not good but i'm learning to
See this post on InvocationTargetException
See the Oracle Documentation on RuntimeException
See this post on javafx.fxml.LoadException
**As noted in the comments, the stack trace, in your case the red error text, tells you one of the problems: ** "Error resolving onAction = '$handleResta', either the event handler is not in the Namespace or there is an error in the script".
The comments are also asking for the file which contains the error, in order to help you more fully; We've identified that onAction = '#handleResta' is a problem problem, but we can't tell what about #handleResta is creating the error until you post this file:
/C:Users/Usuario/Downloads/Proy/build/classes/mvvm/FXMLVista.fxml:14

Java&JDA - Send message without any event [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
So, i have problem. I'm making script on Java with sending logs to my discord server. And i using JDA Api. That script should send message when it will be opened. So without any events. Anyone can help me?
Thanks
Some edit: Sorry for my bad english, ima from Russia btw
You have to first get the bot instance you are working with, then get the text channel. After you made sure the bot can talk there, you can send a message (or multiple).
It would look something like this:
TextChannel textChannel = YourBotInstance.getJda().getTextChannelById("386242731875368960");
if(textChannel.canTalk()) {
textChannel.sendMessage("Your message here.").queue();
}

How to convert tamil string to english string in java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am doing a project which involves NLP. I need to transliterate Tamil String to English string(In tanglish form) like "இல்லை" to "illai"..
How can i do that using java ??
Help me with the code sample
As there are only 72 characters in the Tamil block, build a translation table and then build a new string by testing each if character can be translated before adding it to the list.
For example U+0B87 (இ) becomes i
If you are more familiar with Java and/or have a very large amount of material to translate, there are likely a few processing optimizations to speed up the process, but I suspect the above will be the base of a good solution.
If you only have a small amount of material to translate or this is a one-off job, it may make more sense to simply use Google Translate and get the input translation below the input box.

How to categorize a text paragraph into predefined categories? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a list of categories like Sports,Game,Religion,Finance,Market Rates,I.T,Health,Adult,Business,B2B, government, politics, education etc..
now I want to categorise a text paragraph into these categories, actually I extract whole text from a particular URL and want to categorize text into my categories, at this time I'm using dbpedia,also I have used many technologies, but unfortunately I'm still not reaching to my aim, can someone help me please...I shall be grateful.
There is an old but very good paper that covers the task of text categorization. It can be very useful for you as an introduction:
Machine Learning in automated Text Categorization, Fabrizio Sebastiani, 2002
http://orb.essex.ac.uk/CE/CE807/Readings/sebastiani02.pdf

How would i play a specific song in iTunes through java? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How would i play a specific song in iTunes through java?
I assume I need to somehow connect to iTunes and use the play function with a certain parameter....Can anyone point me in the right direction to learning how to do this?
According to that answer, there is no API. There is only an SDK (via COM) for Windows.
In Mac OS, iTunes is controlled via AppleScript(example).
Ik it's too late, but u can use apple script editor. for instance,
Runtime runtime = Runtime.getRuntime();
String[] args = {"osascript" , "-e" , "tell application \"iTunes\" to play"};
try{
Process process = runtime.exec(args);
}catch (Exception ex) {
}
this will play a song in itunes

Categories