Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all 5661 articles
Browse latest View live

IntelliJ Building Jar - META_INF Can't resolve main class

$
0
0

I'm trying to get started on IntelliJ. I've setup my project, and I'm now trying to create the JAR file.

 

The Jar File outputted is of wrong size (Below 1KB), and should be  40KB+. After unzipping the Jar File, there are two files which are not  in my "main" folder.

 

Here is a picture of my project layout. SmashSpotify is the main class.

https://www.dropbox.com/s/qm0usrhtz1v40uz/Screenshot%202015-08-20%2021.01.42.png?dl=0

The META_INF, I'm not sure what it's used for, is in the resources  folder. Not in the main/java folder (where all my code is, if this  helps).

 

This is my Project Structure -> Artifacts screenshot: https://www.dropbox.com/s/c17wwx8j64mlc87/Screenshot%202015-08-20%2021.02.48.png?dl=0

 

How can I successfully create a JAR that includes everything from my main/java directory?

Thanks, Toby.


Best place to get immediate support?

$
0
0

Should I be posting my questions here or calling support?

 

Where am I going to get answers fastest?

Resolving dependencies after replacing jars

$
0
0

Hello there, i replaced some librarie files due to a new stable release. I just copied the files from my explorer into the lib folder inside my intellij project. evrything works fine, i actually can build with no problems but all my class files which refrences the library tell me they cant resolve the dependecie... this makes further coding into a horror scenario... what can i do?? i realy dont have any clue...

 

What i then did was deleting the library in the project library settings -> so my project coudnt build up. After readding it it can build but the class files still have the same issue... so this diddnt helped me out.

 

pls help

Problem with quotations in Strings in Intellij

$
0
0

I've been trying to check if strings of a

linkedlist contain these fancy double quotations  ( “ ) with this code:

FileParser parser = new FileParser("C:\\Users\\_Farzad_\\Desktop\\Contents___.xml");
LinkedList<String> list = parser.xmlParserFromFile();
System.out.println(list.get(0));
String string = list.get(0);
System.out.println(string.charAt(43));
System.out.println( string.contains("“"));
String s = "Zott, Christopher, and Raphael Amit. 2007. “Business Model Design and the Performance of Entrepreneurial Firms.” Organization Science 18(2):181–99. ";
System.out.println(s.contains("“")); 

 

but the program output was :

 

Zott, Christopher, and Raphael Amit. 2007. “Business Model Design and the Performance of Entrepreneurial Firms.” Organization Science 18(2):181–99.

false

true

 

 

the problem was that I've just copy/pasted the console output to initialize String s , but the result of method contatins() was changed!

I've tried it in eclipse and it worked well. I think it might be a bug somewhere in intellij. I'm using community version 14.1.

I would appreciate if you check it and tell me what the problem is.

 

Regards

Default indents options

$
0
0

Hi Guys,

 

I'm currently using the 14.1.4 version of intelliJ, and, in the [settings panel -> code style] I'm trying to definde default intdentation options by checking [Use tab characher] and [Smart tabs] but the problem I have is that it simply does not work and I have to define the indent specifically for all the language I use in my personal project, Is that normal...? Maybe it's a bug or I didn't understand the use of this option...

 

Thanks for your help

How do I get IDEA to use SceneBuilder

$
0
0

I downloaded the latest SceneBuilder jar and it opens/runs fine stand alone.   I tried tell JetBrains its location but it shows as grayed out and can't be selected (see attached image)

 

Anyone know what's wrong?

 

Thanks,

D

How do I integerate Visual Studio Online (a.k.a., TFS Online) with IntelliJ 14.1.4 ?

$
0
0

I regularly use Visual Studio Online (unfortunately mis-named by Microsoft - it should really be named "TFS Online" because that's what it really is) as my version control system (VCS) with Visual Studio 2013 and Visual Studio 2015 from several computers with no trouble (i.e., can add new projects, check-in, check-out, create shelve sets, etc.).

 

However, I cannot figure out the correct values to plug into IntelliJ 14.1.4 Ultimate's dialog that appears when I traverse VCS / TFS / Edit Configuration... / Add ...

 

I don't want to expose my true URI that I use to connect to Visual Studio Online, but assume for the sake of this question that it is abc.visualstudio.com/DefaultCollection and that, when I view it from inside Visual Studio, I see a top-level folder named TrainingAndDemos with all my "projects" underneath.

 

After I click the Add ... button in the IntelliJ dialog, I'm presented a modal popup form with the following boxes (some of which remain disabled until I change the Auth: dropdown listbox).

 

Address:

Auth: choices are NTLM (system credentials), NTLM or Alternate.

User name:

Domain:

Password:

[] save password checkbox

 

I have tried various combinations of Address (with and without http: or https: prefix), Auth, User Name and, of course, password, but always get the following error, no mater what combination of entries I type into that dialog:


Host contacted, but no TFS service found.

 

Is there some place with a detailed, step-by-step example I can follow?  I've search your site, but cannot find that type of information.

unable to save settings

$
0
0

Whenever I start Intellij I get a message that says "unable t save settings. Failed to save settings. please restart InteliijIDE.

Win 7 64bit  Intellij version 1.4.1 build # 141.177

 

It doesn't seem that it forgets any settings (I can chage plugins and inspector settings etc and have them persist over a closing opening cycle) but I don't want to get a surprise later either.

Does anyone know what might be causing this? Write permissions somehow? AFAIK, Intellij has full read/write permissions on my machine.

 

TIA


Intellij with Jetty issue

$
0
0

Hi !

 

I need to deploy a war that contains a specific jetty-web.xml but there is not way to specify it , the content of the file is like this :

 

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
    <Set name="contextPath">/</Set>
    <Set name="war"><Property name="jetty.webapps" default="./lib"/>/favor.war</Set>
    <Set name="extraClasspath">./conf/</Set>
    <Set name="maxFormContentSize">200000</Set>
    <Set name="configurationClasses">
        <Array type="java.lang.String">
            <Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item>
            <Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item>
            <Item>org.eclipse.jetty.annotations.AnnotationConfiguration</Item>
        </Array>
    </Set>
    <Set name="systemClasses">
        <Array type="java.lang.String">
            <Item>org.eclipse.jetty.webapp.</Item>
        </Array>
    </Set>
    <Set name="serverClasses">
        <Array type="java.lang.String">
            <Item>-org.eclipse.jetty.webapp.</Item>
        </Array>
    </Set>
    <Set name="parentLoaderPriority">true</Set>

    <Call name="setAttribute">
        <Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg>
        <Arg>^$</Arg>
    </Call>
</Configure>


But Intellij doesn't provide a way to do it , I found that Intellij is creating in tmp folders that contains an xml with the following , which seems 
to be autogenerated from intellij based on the options that we have in the ide.



<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"><Configure class="org.eclipse.jetty.webapp.WebAppContext"><Set name="contextPath">/</Set><Set name="resourceBase">/home/apps/workspace/favor/build/classes/artifacts/favor/exploded/favor.war</Set></Configure>

Any idea on how to specify it ?
Thanks !

Stop "searching for compilable files..." every time?

$
0
0

Hi,

 

I change one line of code and hit Shift-F10 to re-run a class, and every time it takes 10+ seconds with the messages "searching for compilable files..." at the bottom of the screen. Is there a way to get it to stop this? It's the only downside of using IntelliJ/Java/Kotlin vs Python for some scripts I have where I'm constanting making little changes and re-running.

 

I'm using IntelliJ Ultimate 14.1.3, and the project has Kotlin files. It's a Kotlin class with main method that I'm re-running. Maybe it's Kotlin-specific and I should ask on that forum instead?

 

Rob

Maven import modules

$
0
0

I'm working on a large maven project with a lot of modules. I'm trying to import just several of them and when importing, I'm selecting the root folder, specifying the "search for projects recursively" option.

 

The problem is that on the step "Select maven projects to import", I see only several of them displayed. If I choose Finish, all modules are imported succesfully (even not visible in the previos step).

I'm using 14.1 version, and I do remember that with an older IDEA version all modules were displayed before finishing the wizard. However in the meantime something with my project may be changed as well (e.g the problem may be connected with my project).

 

Does anyone have a clue what may be wrong?

 

Thanks

Ivaylo

Hide Compile message

$
0
0

I have created macro to compile java files on save. Whenever i save java file, it automatically compile java file but it also open compile message.

Everytime i save file, it compile and this bottom panel containing compile message shows.

I don't want any compile message in bottom panel.

IntelliJ IDEA doesn't run new android app

$
0
0
I've installed IntellijIdea 14.1.4 on Ubuntu 14.04 
and I made a new Android App using android windows sdk
(replacing build tools with proper Linux build tools).
Idea can make (build) the project correctly and I've tested the apk on genymotion and it worked ,
but when you hit Run Button or Debug or Shift + F10 or what ever the way you use to run the project, it doesn't work.
nothing happens, Idea doesn't get stuck or hangs or give me an error or notification or something, it's nothin.
 when you press the Run or Debug button it's just like you never pressed it.
I made a new normal Hello world java project and it worked .
only android apps are not running.
I tried to delete ~/.IdeaIC14 which resets it's settings and it didn't work either.

How to set JBoss working directory

$
0
0

I used Eclipse before where I was able to configure the JBoss working directory, see bottom of attached screenshot.

 

I do not find the related config in IntelliJ :-(

 

Who can tell me how to configure that?

 

Thanks in advance.

Where is the "do not show this dialog" option for auto-format code in 14.1.4?

$
0
0

In Windows, by default, Code -> Reformat Code is `CTRL+ALT+L` and "Show Reformat File Dialog" is `CTRL+ALT+SHIFT+L`.

 

The latter window has no "show this dialog in the future" checkbox. 

 

I believe it used to live under Settings -> Editor -> General -> Formatting, but in 14.1.4, the only options there are "Show notification after reformat code action" and "Show notification after organize imports action".

 

How it used to be, apparently:

 

http://stackoverflow.com/questions/27747355/intellij-idea-how-to-revoke-reformat-code-optimize-imports-dialog

http://stackoverflow.com/questions/9344667/intellij-idea-code-reformat-options

 

How can I re-enable the "show this dialog" option? 

 

How can I change the default Reformat Code... settings (scope, in particular)? 


How to debug Ecmascript 6 tests ?

$
0
0

Hi

 

I use the following command from the cli :    

./node_modules/.bin/mocha --check-leaks --throw-deprecation --growl --recursive --compilers js:babel/register src/test/

 

How can I debug them using intellij 14.1.4 ?

 

Thanks in advance

 

best

Shortcut for Row Filter in Table Editor

$
0
0

Is there a key shortcut for going to the row filter in the Table Editor?

Javascript does not appear under code style

$
0
0

I have been a long time RubyMine user, and at a new company with a node code base, I decided to give Intellij a try.  However, I am having some big javascript problems.  I am unable to click through on code, refactor the code, or highlight uses of vars, etc in the file.  This led me to look at preferences and I do not have Javascript under Code Style.  I can't find a way to install it, nor a plugin for it.  What am I missing?  It is still right there in my copy of RubyMine.

Thought you could have tabs both multi-row and alpha sorted

$
0
0

My computer had a power-down hissy-fit, and I've lost some of my IDEA setttings. (Before you ask, yes I wish my backups weren't broken at the moment, and I'm working on it...)

 

I'm pretty much certain I used to have tabs shown in multiple rows, and also in alpha order, but that doesn't seem to be an option. Searching the docs actually says that the way to enable aplha sorting is to show tabs in a single row.

 

Am I completely hallucinating here? Is there a hidden setting that does that? Is a plugin required?

 

Thanks.

Shortcuts : Alt + n° (from the keypad) doesn't work

$
0
0

Hi,

 

Everything is in the title.

 

Alt + n° (from the keypad) does not work but it work from the standard keys. Why?

Conversely, for Ctrl + / (comment/uncomment line), the "/" is from the keypad and not from the standard keys. Why should it not be the same ?

 

Thank youin advance foryour answers.
Viewing all 5661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>